View Single Post
  #2 (permalink)  
Old April 7th, 2008, 10:06 AM
mehere's Avatar
mehere mehere is offline
Mistress of Sarcasm

 
Join Date: Mar 2008
Location: Wide Awake In Dreamland
Posts: 111
Thanks: 8
Thanked 19 Times in 17 Posts
Rep Power: 1
mehere is on a distinguished road

Awards Showcase
Microsoft SQL Server Classic ASP 
Total Awards: 2

Default

i think it has something to do with not going through the whole table with the way the query is. try this:
Code:
SELECT value1,value2,value3 
FROM tbl1 
WHERE tbl1.value4='a value' 
AND tb1.value5 IN
	(SELECT value1 FROM tbl2)
although i think this will work with mySQL 5, it may not work with mySQL 4. not sure. I haven't used mySQL all that much.
__________________
Quote of the Month:
Strife: As long as we have each other, we'll never run out of problems.

Questions to Ponder:
Should vegetarians eat animal crackers?

iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm")
copyright © 2008 sbenj69
Reply With Quote