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 do you improve the performance of a SQL Azure Database?

135


How to find the login name linked to a given user name?

945


How can you ensure that the database and sql server based application perform well?

1015


Explain what is the function of sql server agent windows service?

944


What is a database table?

927


What is history table in sql server?

896


How to retrieve error messages using mssql_get_last_message()?

994


how you can move data or databases between servers and databases in sql server? : Sql server administration

917


Write a program to fetch first 10 records from a file?

971


What is 2nf normalization form?

1052


How to return the second 5 rows in ms sql server?

1006


What is difference between aggregate and analytic function?

875


Explain external key management in sql server 2008

849


What are key, name and value columns of an attribute? : sql server analysis services, ssas

949


What is difference in performance between insert top (n) into table and using top with insert?

973