sql,query


Can anyone have a look at my join.
It returns errors

Select O.name, O.amount , P.Productname, P.price
>From Orders AS O
JOIN Products AS P ON O.product=P.Productid
Where O.cluster= 'ANP';


It works fine when I use

Select O.Name, O.amount, P.productname , P.price
>From Orders as O, Products as P 
Where O.product=P.productid
AND O.cluster = 'ANP';


When I use the first example  with "INNER JOIN" it works as well.
The book I use as study guide is a few years old so maybe the syntax has changed ??


Any ideas



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to