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

Explain what is dbcc?

1068


Give me any three differences between Truncate and Delete.

1163


Explain table valued parameters in sql server? Why tvp used?

1070


Which sql server table is used to hold the stored procedure script?

1006


What are the disadvantages of merge replication?

1515


what are the different ways to return the rowcount of a table?

1056


How do I find sql server instance name?

1008


Your table has a large character field there are queries that use this field in their search clause what should you do?

927


How to set database to be single_user in ms sql server?

1082


What are various aggregate functions that are available?

1044


Explain the different types of joins?

1046


What is 2nf in normalization?

1058


How do you delete duplicate records in sql server?

1127


When a primary key constraint is included in a table, what other constraints does this imply?

1029


What is the stuff and how does it differ from the replace function?

1227