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

select * from table1
union
select * from table2

-- Union will give distinct value of both tables

Is This Answer Correct ?    38 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

your distribution database is full what will u do

1892


What is normalization of database? What are its benefits?

713


What is not null constraint?

839


Differentiate between truncate vs delete in mssql?

709


Explain an incremental backup?

765


What is database isolation in sql server? : sql server database administration

804


Does transparent data encryption provide encryption when transmitting data across the network?

821


What is user-defined inline table-valued function?

718


What is the difference between ROW_NUMBER and Ranking function in SQL SERVER?

865


How use inner join in sql server?

823


What is a dbms wizard?

790


State a few properties of relational databases?

857


Do you know how to make remote connection in database?

742


How can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role?

810


What is simple indexing method?

775