SQL Append table queries -


i have 2 tables, table1 2 rows of data row11 , row12 , table2 3 rows of data sat row21, row22, row23

can provide me sql create query returns

row11 row12 row21 row22 row23 

note: dont want create new table return data.

use union all, based on example data:

select * table1 union select * table2 

union removes duplicates - if both tables each had row values "rowx, 1", query return 1 row, not two. makes union slower union all, because union all not remove duplicates. know data, , use appropriately.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -