Click here to Skip to main content
15,893,368 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dear All
how to select record form different table where no. of column are different each table.
Posted
Comments
sravani.v 15-Mar-12 8:45am    
Can you please elaborate your question?

there are two ways where u can implemented your queary..!
first by using JOINS
and second by using UNION ALL

just try to get information abt this...!
Regards..
Dnyanesh
 
Share this answer
 
The number of columns doesn't really matter, unless you mean the columns used in the WHERE clause. You could create a view that combines the tables and columns, or forms a common set, then do you select from there. Or you could use SELECT *, though this would be the least choice.
 
Share this answer
 

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