There is a table1 with records (1,2,3,4,5,6) and table2
with records (4,5,6,7,8,9).write a query so as to get the
result as 1,2,3,4,5,6,7,8,9
Answer Posted / naveen
For Oracle it would be
select * from table1
union all
select * from table2
if you will use
select * from table1
union
select * from table2
it will give you double rows those are common in both the
tables.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Suppose we have a table "MyTable" containing 10 rows, what query should be executed to update the odd rows "Salary" as 9000?
What is logon trigger?
What is a group function explain with an example?
What is the osql utility?
What is SQL Azure Data sync?
What is onf in normalization form?
Does partitioning help performance?
How to edit table in sql server 2017?
What is the difference between lock, block and deadlock? : sql server database administration
Why do you need a sql server?
What is the ‘fillfactor’?
What do you understand by a stored procedure?
Can an entity have two primary keys?
How to use copy and concatenate commands in SQL?
can we have a nested transaction? : Sql server database administration