Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / sushama kumari

select col1,col2 from table1 union table2 is an incorrect
answer.
Following 2 are corrcet answers:
1.
select * from table1
union
select * from table2
2.

select col1 from table1
union
select col2 from table2

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is checkpoint process in the sql server?

977


Explain different types of self contained sub query?

973


What is the difference between a function and a trigger?

1033


What are extended events in sql server?

921


What is log in sql server?

1103


What is the use of “join” in sql server?

1042


What are the advantages of policy management?

958


What is a data source or ds? : sql server analysis services, ssas

971


How to create a view using data from another view?

917


How to Update from select query in sql server?

1015


Explain an incremental backup?

951


How many cores do I need for sql server 2016?

863


what is sql server? : Sql server database administration

949


What different steps will a sql server developer take to secure sql server?

950


can you implement data mining in SSRS?

142