Click here to Skip to main content
15,905,781 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
i need to club 3 queries which has 4 different tables.
1 query is with inner join so there are 2 tables .
other 2 queries with 2 tables.
now i want join those 3 queries into one query so that it gives desired result.
Posted
Comments
OriginalGriff 30-May-12 3:20am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.
ujju.1 30-May-12 3:22am    
nothing's clear frm the question.
can you elaborate a bit along with your queries.
Prosan 30-May-12 3:22am    
can you give your query and what result you want
Member 8660975 30-May-12 3:32am    
sorry for such question
i ll try to improve my question
thank u

1 solution

you can use union to merge these queries but in these queries no of columns must be same other wise it will return error.
 
Share this answer
 
Comments
Member 8660975 30-May-12 3:31am    
thank u so much sanjeev u could able to understand my query
i ll try this soln
and i ll try to improve my question.
Member 8660975 30-May-12 3:36am    
can i use aggregate functions and group by when using union..?
Prasad_Kulkarni 14-Jun-12 3:36am    
This is not an answer, use "Have a Question or Comment" option for such comments..

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