473,324 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

About syntax

2
Hi,
Could you please help me to find my syntax errors in the query below:
Expand|Select|Wrap|Line Numbers
  1. select avg(hd) as AVG_HD
  2. from (Product inner join PC on Product.model=PC.model) T
  3. where exists (select * from Product where type='Printer' and T.maker=maker)
Thanks in advance!
Apr 9 '11 #1
1 1163
NeoPa
32,556 Expert Mod 16PB
Thao, when posting questions here please remember to provide the basic information such as any error messages and which lines they are associated with. Wasting our time to save you yours is not greatly appreciated.

In this case your use of [T] is out of place. It should be found after a table (or record source) name. Not after the whole FROM clause. EG:
Expand|Select|Wrap|Line Numbers
  1. FROM (Product AS T
  2.       INNER JOIN
  3.       PC
  4.   ON  Product.model=PC.model)
Or, alternatively :
Expand|Select|Wrap|Line Numbers
  1. FROM (Product
  2.       INNER JOIN
  3.       PC AS T
  4.   ON  Product.model=PC.model)
Depending on which you wish to refer to as T.
Apr 10 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Maciej Nadolski | last post by:
Hi! I`ve got a problem again:( I almoust finished my project and I was doing stupid forms in html to display as frontend. I have something like that: <?php $wyswietl = ' <html> blahblahblah';...
699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
9
by: Martin | last post by:
Due to the the large numbers of MS trained programmers unemployed we are looking at using MS Development environments. VB programmers are currently 10 a penny. However I find C a bit more...
4
by: Bob hotmail.com> | last post by:
Everyone I have been spending weeks looking on the web for a good tutorial on how to use regular expressions and other methods to satisfy my craving for learning how to do FAST c-style syntax...
1
by: Hari Sekhon | last post by:
I've written an except hook into a script as shown below which works well for the most part and catches exceptions. import sys def myexcepthook(type,value,tb): do something ...
3
by: Arvind | last post by:
Hi, A standards document I am reading defines a packet format using C++. I would really appreciate it if any of you could tell me what the meaning of the following syntax is? class...
2
by: wavedancer | last post by:
I am confused about the syntax used in the style sheet that accompanies the website I've inherited and have been asked to tidy up. XHTML is new to me, and I've only used CSS for font and link styles...
2
by: plemon | last post by:
Is it ok for me to name the form and the radiobutton and the function the same name or will that cause problems now or further down the road?
1
by: SpreadTooThin | last post by:
If this is the implementation of the method in the cpp file: dbgBuf(std::streambuf* output_buffer) : buffer(output_buffer), at_start(true), level(0), log_on(true) { } What should the...
1
by: prakiat | last post by:
I've 2 tables in database.The first table is patient and it has field(HN,fname,lname). The second table is opdscreen and it has field(HN,date,fbs). One patient can recieve more date and In the...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.