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

How to add the custom code in Report?

112


Do you know what guidelines should be followed to help minimize deadlocks?

721


What are magic tables in sql server?

788


How to set a database state to offline in ms sql server?

716


how can you attach more than 20 ldf files in sql server

1744






Explain aggregate functions?

786


How to use values from other tables in update statements in ms sql server?

742


what protocol both networks use? : Sql server database administration

717


How to view existing indexes on an given table using sp_help?

804


Explain full-text indexing?

693


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

714


What is change data capture (cdc) in sql server 2008?

755


What is the partitioning method?

747


What are the advantages of sql azure?

134


Call by value and call by reference in procedure and function, with NOCOPY.

1045