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

For Oracle it would be

select * from table1
union all
select * from table2

if you will use

select * from table1
union
select * from table2

it will give you double rows those are common in both the
tables.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How much is a sql server license?

953


What is SQL Azure Federations?

112


What is multi-statement table-value user-defined function?

996


What is logon trigger?

1096


What’s the use of custom fields in report?

944


What is the concept of optimization?

1060


How many triggers you can have on a table?

995


How retrieve field names from the table in SQL through JAVA code?

1906


How to defragment indexes with alter index ... Reorganize?

1088


How to connect of datebase with sql express.?

1104


How to delete existing triggers using "drop trigger"?

1053


If any stored procedure is encrypted, then can we see its definition in activity monitor?

988


what is isolation level at dead lock?

2151


how to do partition in sqlserver

2474


What are the commands used in DCL?

1028