Associate
- Joined
- 14 Apr 2003
- Posts
- 1,101
Hi,
I have a database that stores information about bird watchers, birds and the birds that each bird watcher has seen. Im trying to write a query that returns all the birds that a particular bird watcher hasnt seen, but has been seen at least once by another bird watcher. Currently i have:
SELECT * FROM Sightings,Birds WHERE sightings.BirdID = Birds.BirdID AND Sightings.UserID <> 47 GROUP BY sightings.BirdID
I thought this would be enough but it returns birds that bird watcher 47 has seen. So in affect its returning all birds that have been seen by someone else where i need it to exclude the whole 'group' not the individual sightings.
I hope this makes sense!
Matt
I have a database that stores information about bird watchers, birds and the birds that each bird watcher has seen. Im trying to write a query that returns all the birds that a particular bird watcher hasnt seen, but has been seen at least once by another bird watcher. Currently i have:
SELECT * FROM Sightings,Birds WHERE sightings.BirdID = Birds.BirdID AND Sightings.UserID <> 47 GROUP BY sightings.BirdID
I thought this would be enough but it returns birds that bird watcher 47 has seen. So in affect its returning all birds that have been seen by someone else where i need it to exclude the whole 'group' not the individual sightings.
I hope this makes sense!
Matt