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

How to populate a table in sql server?

942


What is function of CUBE ?

1012


How to select some specific rows from a table in ms sql server?

985


how to control the amount of free space in your index pages? : Sql server database administration

1019


How to add a new column to an existing table with "alter table ... Add" in ms sql server?

988


What is the difference between migration and upgradation in sql server?

1081


explain different levels of normalization? : Sql server database administration

981


Do you know exporting and importing utility?

1022


What is transaction server explicit transaction?

1013


How can you hide the sql server instances?

1004


What is an execution plan? When would you use it?

957


Can You Use Data Mining Models In Ssrs?

145


What are acid properties of transaction?

935


Explain what is cte (common table expression)?

1112


What is change tracking in sql server?

983