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
 General SQL Server Forums
 New to SQL Server Programming
 How to use "Exist" in a query

Author  Topic 

rluxmi
Starting Member

6 Posts

Posted - 2009-12-14 : 22:38:06
So I have two tables F405 and F4102. In that I have three columns, COLITM, LITM, MCU AND COLEDG. Now I want to write a query where COLEDG ='P2' AND COLITM IN F405 MATCHES WITH LITM IN F4102 considering that MCU exist with a value of 2000001.

Thanks.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-12-14 : 23:22:33
Please show us some sample data to make your problem more clear.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -