RE: SQL UNION ALL

2004-12-29 Thread mail.pmpa
It's working now! Thank you Shawn and Alex. Have a Happy New Year! Pedro Almeida. -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Enviada: quarta-feira, 29 de Dezembro de 2004 21:23 Para: mail.pmpa Cc: mysql@lists.mysql.com Assunto: RE: SQL UNION ALL "

RE: SQL UNION ALL

2004-12-29 Thread SGreen
"mail.pmpa" <[EMAIL PROTECTED]> wrote on 12/29/2004 03:52:10 PM: > Thanks for replying. > > I tried that query but I get the following error: > > Query failed : You have an error in your SQL syntax... > ... right syntax to use near 'EXISTS ( SELECT * FROM new_products t03 WHERE > t03 > > I thi

RE: SQL UNION ALL

2004-12-29 Thread mail.pmpa
Thanks for replying. I tried that query but I get the following error: Query failed : You have an error in your SQL syntax... ... right syntax to use near 'EXISTS ( SELECT * FROM new_products t03 WHERE t03 I think I will have to forget the join, split and do a compare directly in php. Also, I w

Re: SQL UNION ALL

2004-12-29 Thread Alex S Moore
On Wed, 29 Dec 2004 19:57:04 - "mail.pmpa" <[EMAIL PROTECTED]> wrote: > What I am trying to do is: > Select products and join brand, but only products that are not new products. > What I have is: > > ( SELECT products.id, products.model > FROM products, brands > WHERE products.brand = brands