Thread: Required items
View Single Post
  #3  
Old 08-25-2009, 03:09 PM
Shadow-Wolf
Dragon
 
Join Date: Oct 2003
Posts: 511
Talking

Quote:
Originally Posted by AndMetal View Post
I'm sure the syntax is 100% correct, but you should be able to do something like this:

Code:
DELETE FROM items 
	WHERE id NOT IN (
		(SELECT components1 FROM spells_new WHERE components1 > 1000), 
		(SELECT components2 FROM spells_new WHERE components2 > 1000), 
		(SELECT components3 FROM spells_new WHERE components3 > 1000), 
		(SELECT components4 FROM spells_new WHERE components4 > 1000), 
		(SELECT NoexpendReagent1 FROM spells_new WHERE NoexpendReagent1 > 1000), 
		(SELECT NoexpendReagent2 FROM spells_new WHERE NoexpendReagent2 > 1000), 
		(SELECT NoexpendReagent3 FROM spells_new WHERE NoexpendReagent3 > 1000), 
		(SELECT NoexpendReagent4 FROM spells_new WHERE NoexpendReagent4 > 1000)
	)
With a little modification adding the fields Cavedude specified this will give me exactly what I needed. Thank you everyone for your help!
__________________
How about the power to kill a yak from 200 yards away...WITH MIND BULLETS! thats telekinesis kyle.
Reply With Quote