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

select * from table1

union

select * from table2

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is scd (slowly changing dimension)? : sql server analysis services, ssas

762


What is transact-sql language?

755


How to change the password of a login name in ms sql server?

717


How many levels of sp nesting is possible?

795


what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration

722






What does COMMIT command do?

768


What is bit data type? What's the information that can be stored inside a bit column?

688


How many partitions a clustered index has by default in sql server 2012?

850


What is filtered index?

821


How can I change procedure name in sql server?

697


What is a data source file?

681


Delete duplicate rows without using rowid.

1274


What are the restrictions while creating batches in sql server?

760


Does index slows down insert statements?

752


What is log shipping? Can we do logshipping with SQL Server 7.0 ?

750