|
-
Jan 29th, 2004, 05:51 PM
#1
Thread Starter
New Member
SQL 'NOT IN' problems
Hi all...
I have to tables. One has a set of dates, the other a list of transactions. I want to be able to produce a set of dates which are not included in the transaction table based on an ID.
I have tried this
"SELECT date FROM SchoolDates NOT IN (SELECT date FROM Transactions WHERE ID='$id') ORDER BY date"
i have tried various combinations of the above but none seem to work, i am using php and a mySQL db.
can anyone help?
Thanks
Jamie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|