Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Sql query help

Author  Topic 

nilaavu
Starting Member

18 Posts

Posted - 2006-04-03 : 15:19:47

I need to do a sql query to select ALL jobs of this equipment if ANY job goes overbudget.

If any job is overbudget
select jobs from mytable where equipment='myEquipment'

Can I make this in one query ?




blindman
Master Smack Fu Yak Hacker

2365 Posts

Posted - 2006-04-03 : 16:18:04
select [AllYourData]
from [YourTable]
where exists(select * from [YourTable] where [YourCriteria])
Go to Top of Page
   

- Advertisement -