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

Answers were Sorted based on User's Feedback



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

Answer / islam

Join technique

Is This Answer Correct ?    11 Yes 0 No

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

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

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

Answer / ravi

We can do this by using JOINS as well as Sub Queries

Is This Answer Correct ?    4 Yes 2 No

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

Answer / rahul

select <column name of 1st table>,<column name of 2nd table>
from <Table name 1st>,<Table name2nd>;

Is This Answer Correct ?    2 Yes 0 No

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

Answer / anjireddy vintha

By using JOINS and UNIONS we can retive data from
morethan one table.

Is This Answer Correct ?    1 Yes 0 No

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

Answer / karthik

select <column name of 1st table>,<column name of 2nd table>
from <Table name 1st> join <Table name2nd> where
table1.columnname = table2.columnname;

atleast one column should be unique in both the tables.

Is This Answer Correct ?    1 Yes 1 No

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

Answer / ajay rana

join techniques is used to to retrieve data from more than
one table in a single SQL statement.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / biryuk

UNION could be used to retrieve data from more than one
table as well.

Is This Answer Correct ?    2 Yes 3 No

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

Answer / bala

Using Temp Table data can be retrieved from more than one
table.

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More DB2 Interview Questions

What is usage pointer in cobol?

3 Answers   IBM,


what is the syntax for FOR UPDATE CLAUSE in cursor declaration and how can u update using cursor? is it possible to update multiple rows at a time.

2 Answers   Syntel,


When do you use the IMAGECOPY?

4 Answers  


How can you quickly find out the # of rows updated after an update statement?

0 Answers  


what is cursor stability?

2 Answers   IBM,


What is the use of COMMAREA ?Minimum how much data we can pass from it?

7 Answers   Cap Gemini,


What are data types?

2 Answers  


What is the meaning concurrency in the db2 database?

0 Answers  


Can i insert bulk records into a db2 table using qmf of spufi only............!!!

2 Answers  


1) I have 3 programs : PGMA, PGMB, PGMC. PGMA calls PGMB and PGMB calls PGMC. I have to do inserts, updates in all the 3 pgms. 2) Say PGMC has done its work successfully and returned to PGMB 3) PGMB had an SQL error while doing some update 4) PGMA has already done some updates before calling PGMB all are running under the same CICS region. What will happen if I issue SYNCPOINT ROLLBACK in PGMB when it abends ? Does all the changes in PGMA,B,C rollback ? (because all the pgms belong to same task).

1 Answers  


What are sqlcodes –803,-805, -811, -818,-904,-911,-913,-101, +100?

0 Answers  


What's the difference between DB2 active log and archive log? Thanks a lot...

2 Answers   IBM,


Categories