View Single Post
  #4 (permalink)  
Old 2006-06-17, 11:39 PM
Xnuiem's Avatar
Xnuiem Xnuiem is offline
Senior Member
 
Join Date: May 2004
Location: DFW, Texas
Posts: 1,104
Xnuiem will become famous soon enough
Send a message via Yahoo to Xnuiem
Default

Code:
select 
	table1.names
from
	table1		
where
	table1.clv not in (
		select
			table2.clv
		from
			table2,
			table3
		where
			table2.clvp = table3.clvp
			and table3.dat = 'AT-001'
	)
;
Here ya go. It is just a sub select. Now this will not work in MySQL less than 4.1.x
__________________
I rarely give code examples.
No, I have never used IIS or Windows of any kind as a web server. Get a real OS!
Please don't PM me, I won't respond.
Reply With Quote