![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I am trying to get a list from one table, and using another table to subtract from that list. I have tried all sorts of versions, but just can't hit on the right one. I am trying to use: SELECT entry_id, entry.video_id, entry_book, entry_category, sort_cat, entry_guard_fname, entry_guard_lname, entry_fname, entry_lname FROM entry, chosen where sort_cat = 2 and entry.video_id in (Select video_id from chosen where chosen_win = "") Which gives me way too may results, 4,042. The first part, comes up with 157 records, |
|
where the second part is only 5. |
|
I want the final list to be 152. |
#3
| |||
| |||
|
|
I am trying to get a list from one table, and using another table to subtract from that list. I have tried all sorts of versions, but just can't hit on the right one. I am trying to use: SELECT entry_id, entry.video_id, entry_book, entry_category, sort_cat, entry_guard_fname, entry_guard_lname, entry_fname, entry_lname FROM entry, chosen |
|
where sort_cat = 2 and entry.video_id in (Select video_id from chosen where chosen_win = "") |
|
Which gives me way too may results, 4,042. The first part, comes up with 157 records, where the second part is only 5. I want the final list to be 152. I have hit a wall here, and not sure where to go next. Can anyone help? |
![]() |
| Thread Tools | |
| Display Modes | |
| |