Using NOT Exists in a query
There has to be something simple that I'm missing.....
One table is being used
I need to see who registered last season but has not registerd for this season. Each time they register for a new season, it creates a new record.
I have this
<cfquery name="doh" datasource=#datasource#>
select * from data
where season='#prev1.season#' and NOT EXISTS (season='#cur1.season#')
</cfquery>
seems simple enough..but receiveing an incorrect syntax error. This is simplying asking for all records that played last year, 2010-2011 but there is not record of them for this year 2011-2012 meaning they haven't registered.
any and all help is GREATLY appreciated.
Sharon
