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



My Profile

Gifts

Active Members
TodayLast 7 Days more...







select query in MSSQLSERVER 2000


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: abhi    25 Jul 2008Member Level: BronzeRating:     Points: 2


select field1,field2 from TABLE where field2 IN (select field2 FROM TABLE) And field1 IN (select field1 FROM TABLE)


Post Reply
You must Sign In to post a response.
Next : Listbox in ASP.NET with # Coding?
Previous : help me(unable to connect visual studio's local web server)
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use