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

Differentiate between cs and rr isolation levels? Where do you specify them?

1022


How would you find out the total number of rows in a db2 table?

988


What is a bind in db2?

982


What are the benefits of using the db2 database?

1154


What is null indicator in cobol db2?

991


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

1030


List out the data types available.

1080


What is the physical storage length of timestamp data type?

1024


What is cascading rollback?

1133


What is db2 purescale?

943


What os does db2 run on?

924


What is isolation level in db2?

941


I have a subprogram B calling from mainprogram A.I have opened a cursor in A ,Can i fetch the same cursor in subprogram B , If yes , Please explain the reason?

2338


What is difference between isnull and coalesce?

1006


How connect db2 database to datastage?

1187