C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




URGENT!!! SQLSERVER 2000 query


Posted Date: 25 Jul 2008      Total Responses: 1

Posted By: jayakumar       Member Level: Gold     Points: 1



select field1,field2 from MASTER where (field1,field2) IN (select field1,field2 FROM TABLE).

this query is not running, getting error stating that syntax error near ','.
what is the wrong with above.

if change the query then it is working.

select field1,field2 from MASTER where field1 IN (select field1 FROM TABLE).

the above query has only one field in where clause,this is working fine.

what is the wrong with first queriy.





Responses

Author: Anjan    25 Jul 2008Member Level: SilverRating:     Points: 3

You can use like the following way,
SELECT field1,field2 FROM MASTER WHERE field1 in (SELECT field1 FROM TABLE) AND field2 IN (SELECT field2 FROM TABLE)



Post Reply
You must Sign In to post a response.
Next : Any one explain the roles of 5 normal forms?
Previous : kindly explain about how to send the mail using
Return to Discussion Forum
Post New Message
Category: SQL Server

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use