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 / john
select * from table1
union
select * from table2
-- Union will give distinct value of both tables
| Is This Answer Correct ? | 38 Yes | 2 No |
Post New Answer View All Answers
Why use update_statistics command in sql server?
Define Business Edition in SQL Azure?
Define model database?
What are the dmvs?
Do you have any idea about the tcl commands?
Write a code to select distinct records without using the DISTINCT keyword.
What is the name of reporting services config file and what’s it’s used for?
How can we solve concurrency problems?
How to skip remaining statements in a loop block using continue statements?
How sql server executes a statement with nested subqueries?
How can you tell if a database object is invalid?
What are distributed partitioned views?
Explain full-text query in sql server?
What is single-user mode and what are the steps you should follow to start sql server in single-user mode?
What is index, cluster index and nonclustered index?