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...

What technique is used to retrieve data from more than one
table in a single SQL statement?

Answer Posted / mani

Both UNION or UNION ALL and JOIN can be used.

The purpose of retreiving data from more than one table in a
single statement generally happens when the ouput of the
involved tables has same table structure and in this case
either UNION (to eliminate the duplicates in the resultant
table)or UNION ALL (to retain the duplicates in the
resultant table)could be used.

If retrieval is based on seletion criterion then JOINS could
also be used but here the resultant table structure can be
different from that of the tables involved in join operation.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is db2 a mainframe database?

959


What is db2 connect?

1022


What is the maximum size of varchar data type in db2?

1084


How do I add a column to an existing table in db2?

987


Explain packages.

1068


What is data manager?

1002


How to check last update on table in db2?

1020


What is drop table?

967


What is db2 and what is the use of db2 optimizer?

1005


Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?

1046


Which components manage deadlocks in db2?

1034


What is the connection string to connect to the DB2 Database ?

1076


Following a db2 update statement, what is the quickest way to compute the total number of updated rows?

1023


What is the max length of sqlca?

1176


What is nvl in db2?

1054