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

say table1 has col1 & table2 has col1 column

select col1 from table1
union
select col2 from table2

Is This Answer Correct ?    8 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the report builder?

110


Can we run Reporting Services with SQL Server express edition, which is a free version of SQL Server?

88


What is “begin trans”, “commit tran”, “rollback tran” and “savetran”?

678


Do you know sql server 2008 introduces automatic auditing?

601


What is difference in performance between insert top (n) into table and using top with insert?

628






What is sqlservr.exe - process - sql server (sqlex?press)?

697


What is outer join in sql server joins?

669


What happens if you are trying to access a schema not owned by you?

595


What is the purpose of grouping data in a report?

624


Which table keeps the locking information?

606


Explain microsoft sql server functions?

647


What is the temp table?

622


Why do we partition data?

698


What are various ways to enhance the ssrs report?

609


Sql studio em braces a variety of capabilities, but will I need them all? Is there a simpler product ? : sql server management studio

598