Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

Can you please help me on this.
I have tables t1,t2,t3
common column an in 3 tables id.
now i want select t1.colm1,t1.clom2,t2.clom1,t2.clom3,t3.clomn2 from t1,t2,t3 and selcet top1 t1.clomn1 from t1 table and get data from 3 table using joins or any other like where condition using id column is the common for 3 tables.

please help me on this.

Advanced Thank you.

Regards,
Narasimha
Posted
Comments
ZurdoDev 29-Nov-12 8:41am    
Can you explain this more clearly, maybe with an example?

Have a look at this similar question on Stack Overflow: SQL Server: How to Join to first row[^].
 
Share this answer
 
can you elaborate your question ?
 
Share this answer
 
Comments
André Kraak 29-Nov-12 13:25pm    
Please do not post a comment as a solution. Use the Reply button next to the comment you want to respond to. Using an solution like this will give the people the impression that your question has been answered and perhaps not look at it, causing you not to get an answer to your question.

Please move the content of this solution to the comment you want to reply to and remove the solution.
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900