469,080 Members | 1,747 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,080 developers. It's quick & easy.

subselect doesnt work

hi there, i am trying to remove values from a list menu if the join table d=
oesnt have keys when a key is selected for instance:

locationID shotlistID

SELECT SQL_NO_CACHE l.locationID , l.location FROM locations l LEFT JOIN lo=
cations_join lj ON l.locationID =3D lj.locationID WHERE l.locationID NOT IN=
(select locationID FROM locations_join WHERE shotlistID IN (5069)) ORDER B=
Y l.location ASC

so when shotlistID is selected all the keys from the locations_join joined =
to the shotlistID would be remove from the locations list please help, i'm =
trying to do this in one query saving from getting all the keys into an arr=
ay then checking if the values arent in the array when generating the list.
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/my***********...ie.nctu.edu.tw

Jul 19 '05 #1
0 1248

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Theodor Ramisch | last post: by
reply views Thread by Daniel Rossi | last post: by
4 posts views Thread by James | last post: by
6 posts views Thread by Sebastien | last post: by
5 posts views Thread by Bart op de grote markt | last post: by
1 post views Thread by nemesisdan | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.