Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have two views and i want result set of that by using union all
Posted

select * from view1
union all
select * from view2

Of course, the two views should return the same columns.
 
Share this answer
 
Google is your best friend. Please Find Union All[^]

sql unionall[^]
Sample:
SQL
SELECT Column1,column2,column3
FROM View1
UNION ALL
SELECT Column1,Column2,Column3
FROM View2;
 
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