I want my query to return the name and ident from the member table for all members that has not got an entry in status with year18
I have been working on the following query to achieve this, but it only returns data when there is no `year` entries for a selected year.
select details.ident, given, surname from details left join status on details.ident = status.ident where NOT EXISTS (select year from status where (status.year = 2018) and (details.ident = status.ident) )
Thank you for looking at this. regards, Chris Roy-Smith
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql
Jan 19
shawn l.green Re: Can't get my query to return wanted data
Jan 19, 2018; 11:25
shawn l.green
Re: Can't get my query to return wanted data
Jan 19
Chris Roy-Smith Re: Can't get my query to return wanted data
Jan 19, 2018; 22:11
Chris Roy-Smith
Re: Can't get my query to return wanted data
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!