Just mind the ", CourseName" in the inner query.

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 942-5378
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/


> -----Original Message-----
> From: Tony Weeg [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 24, 2003 2:53 PM
> To: CF-Talk
> Subject: RE: How do I a get list of everybody that doesn't meet a
> certain criteria
>
>
> Select EmpID
> from course where empId not in
>
> (     SELECT EmpID, CourseName
>       FROM Course
>       WHERE CourseName = "Preventing Sexual Harassment"
> )
>
> hth
>
> ...tony
>
> Tony Weeg
> Senior Web Developer
> UnCertified Advanced ColdFusion Developer
> Information System Design
> Navtrak, Inc.
> Mobile workforce monitoring, mapping & reporting
> www.navtrak.net
> 410.548.2337
>
> -----Original Message-----
> From: Kronenberger, Douglas [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 24, 2003 2:58 PM
> To: CF-Talk
> Subject: SQL: How do I a get list of everybody that doesn't meet a
> certain criteria
>
>
> I'm stumped.
>
> I have a table that has multiple courses taken (CourseName) entries  for
> each employee (EmpID)
>
> This gets me everybody that took the coures.
>       SELECT EmpID, CourseName
>       FROM Course
>       WHERE CourseName = "Preventing Sexual Harassment"
>
> But how do I get everybody that didn't?
>
> Thanks in advance
>
> Doug Kronenberger
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to