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

here is some thing diff answer ..
we can use full outer join...if they ask for other then
union condition..
select * from t1 full outer join t2 where t1.id= t2.id..
with some condition

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we hide the definition of a stored procedure from a use?

641


Explain what is meant by replication of database?

520


What is the difference between for xml raw and for xml auto?

551


What are trace files?

514


What is the difference function and stored procedure?

553






Can a function call a stored procedure in sql server?

514


Is BCNF better than 2NF & 3NF? Why?

611


what's the information that can be stored inside a bit column? : Sql server database administration

517


How to provide login information for a new odbc dsn?

528


What is the sql case statement used for?

550


Distinguish between commit and rollback?

528


How to find out what is the default collation in a database?

612


What is table join?

591


What is the New in SQL server 2008?

565


What are the advantages of partitioning?

627