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

EXPLAIN has output with MATCHCOLS = 0. What does it mean?

2 Answers  


What is meant by isolation level?

3 Answers  


what is the difference between declaring the cursor in WS section and Procedure division?

1 Answers   HCL,


How can you get the number of rows impacted by the last executed query?

1 Answers  


What is the difference between dbm cfg and db cfg file in db2 ?

0 Answers   MCN Solutions,






How is the value function used?

0 Answers  


how can i pull up a query which was previously stored in qmf

3 Answers  


What is a lock?

1 Answers  


I HAVE 500 ROW TO UPDATE I WOULD LIKE TO USE ROLLBACK ALONG WITH COMMIT.WHAT IS THE SYNTAX TO CODE COMMIT AND ROLLBACK FOR EVERY 100 ROWS.AND HOW THE CURSOR ROLLBACK TO THE LAST COMMITTING POINT.

0 Answers   ITC Infotech, Syntel,


What are the three types of page locks that can be held?

1 Answers  


How to run db2 command in windows?

0 Answers  


What is deadlock in db2?

0 Answers  


Categories