RRoswell
Programmer
- Sep 26, 2006
- 24
Hi,
I have two tables, a cart table and an account table.
I need to see if an item is in either table with one Select statement. The item should never be in both tables at the same time.
I try this but it's not working:
SELECT a.item, c.item FROM accounts a, cart c WHERE a.acct = '$item' OR c.acct = '$item'
Any ideas?
Gracias.
I have two tables, a cart table and an account table.
I need to see if an item is in either table with one Select statement. The item should never be in both tables at the same time.
I try this but it's not working:
SELECT a.item, c.item FROM accounts a, cart c WHERE a.acct = '$item' OR c.acct = '$item'
Any ideas?
Gracias.