Whatz the main diff between Subquery and a Join

Answers were Sorted based on User's Feedback



Whatz the main diff between Subquery and a Join..

Answer / a.n.v.v.siva kumar

The main difference between join and sub query is :
join is used to retrieve data from two different tables
where as in sub query we can retreive data from one table
using the result of the where condition on another table.

Is This Answer Correct ?    8 Yes 8 No

Whatz the main diff between Subquery and a Join..

Answer / ramakrishna alla

Above one is exact answer that says sub query is used to get data based on unknown condition (example: select the employee's salary where employee salary greater than clerk) here first we find out clerk salary and then based on his salary we find employee's salary according to above query)
join is used to get the data from atleast 2 tables.

Is This Answer Correct ?    0 Yes 0 No

Whatz the main diff between Subquery and a Join..

Answer / gomolemo kasale

a sub query is a query nested within another query while
join select rows from multiple table

Is This Answer Correct ?    0 Yes 0 No

Whatz the main diff between Subquery and a Join..

Answer / suryakiran

The main usage of subqueries is to retrieve a single record
from that same table or another table.

And also we can use subqueries to retrieve multiple
records,for this we have to use multiple sub queies,instead
of this its better to use joins based on a condition.

We can perform all operations for joins by using subqueries
but it is very complicated.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Oracle General Interview Questions

How to Remove the 3rd highest salary person record from table?

9 Answers   HCL, IBM,


How to invoke the original export import utilities?

0 Answers  


We have one Package(which has many function/procedures, SQL quires etc). Now we need to check, which query or procedure is taking lot of time in that Package. ? How do we do it.

2 Answers   IBM,


I have two tables : COuntry,city I want all the cities in each country.Question on Cross Join.

3 Answers   Microsoft,


What are a collation and state the different types of collation sensitivity?

0 Answers  


How to update values in a table in oracle?

0 Answers  


What is the difference between I and G in Oracle?

0 Answers   MCN Solutions,


How to handle a single quote in oracle sql?

0 Answers  


Can you assign multiple query result rows to a variable?

0 Answers  


Describe varray?

0 Answers  


How can I combine multiple rows into a comma-delimited list in oracle?

0 Answers  


What is oracle and what are its different editions?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1808)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)