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

Explain the function done by data manager?

1284


What is check constraint in db2?

1092


What is image copy in db2?

1021


How do you pull up a query which was previously saved in qmf?

1154


What is db2? Explain.

1050


Is schema the same as database?

1062


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

1032


What are the contents of dclgen?

1114


What is the use of with ur in db2?

1058


What is the physical storage length of the data types date, time, and timestamp?

1093


What is reorg and runstats in db2?

1220


Mention the length of physical storage of the given data types of db2 – date, timestamp, time

1077


Where can you declare a cursor in a cobol-db2 program?

1078


i want to maintain uniqueness on pdf without make lf??????????

2158


What is the difference between plan and package in db2?

1119