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
What is difference between line feed ( ) and carriage return ( )?
What is report server project?
How can we delete a table in sql server?
What do you mean by an execution plan? Why is it used?
What is the difference between locking and multi-versioning?
Explain log shipping?
Give the query of getting last two records from the table in SQL SERVER?
How do you delete a data source?
Can you change the data type of a column in a table after the table has been created? If so, which command would you use?
How to add code to the existing article (using improve article)?
Explain the concepts and capabilities of sql server?
How do I find the port number for sql server?
What is difference between cte and view?
How do I get to sql server configuration manager?
List types of tables in SQL Azure?