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 / amit

select * from table1
union
select * from table2

Is This Answer Correct ?    21 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between set and select?

659


How many database files are there in sql server 2000?what are they?

654


Tell me in brief how sql server enhances scalability of the database system?

612


What are the steps to insert a table?

620


What are distributed partitioned views?

718






How to create a dynamic cursor with the dynamic option?

633


What is the report builder?

110


What is transaction server isolation?

663


How to list all field names in the result set using mssql_field_name()?

613


What does it mean to invest in the index?

603


How do I view a script in sql server?

626


How to define output parameters in stored procedures?

624


How do I setup a local sql server database?

620


Explain external key management in sql server 2008

598


What are page splits? : SQL Server Architecture

637