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

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

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

unit testing - How to mock PreferenceManager in Android? -