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

their should be a relationship between the tables then only
we can use join conditions....
But the subquery can be used to retrive data from one or
more table if their is no relation between the tables....

Is This Answer Correct ?    78 Yes 27 No

Whatz the main diff between Subquery and a Join..

Answer / pardeep chadha

Majorly subqueries run independently and result of the
subquery used in the outer query(other than corelated subquery).
And in case of join a query only give the result when the
joining condition gets satisfied.

Is This Answer Correct ?    32 Yes 11 No

Whatz the main diff between Subquery and a Join..

Answer / anbu

their should be a relationship between the tables then only
we can use join conditions....
But the subquery can be used to retrive data from one or
more table if their is no relation between the tables....

Is This Answer Correct ?    17 Yes 4 No

Whatz the main diff between Subquery and a Join..

Answer / mythili

Join:
It is the method of joining one or more tables together and
finding a answer.

Sub Query:

It is a method of finding one answer using another query.

Main Difference:

In join both the tables should have a comman column name
but in subquery without having a column name we can execute
the query.

Is This Answer Correct ?    30 Yes 19 No

Whatz the main diff between Subquery and a Join..

Answer / siva

Sub Query:

The Sub Query only get the results as one table or the
other table based that the result be of onther table as
used in the table.
The two tables information are dispalyed as combiend.

Join:

To get results more rhan two tables information.

Is This Answer Correct ?    7 Yes 3 No

Whatz the main diff between Subquery and a Join..

Answer / adil khan

main difference between join and subqurey is that join is
used for known condition while subquery is used for unknown
condition.

Is This Answer Correct ?    6 Yes 2 No

Whatz the main diff between Subquery and a Join..

Answer / affan

the main diff is

the subquery gives the result from one table only,but whose condition may depend on another table i.e the inner query.

whereas join gives the result from both the tables if condition is satisfied

Is This Answer Correct ?    3 Yes 1 No

Whatz the main diff between Subquery and a Join..

Answer / kuldeep singh

Join:
It is the machanism of joining one or more tables together
and finding information from one or all tables used in join.

Sub Query:

It is a method of finding answer using another query as
parametere for first query.

Main Difference:

In join both the tables should have a comman column type
but in subquery without having a column type we can execute
the query.

Is This Answer Correct ?    17 Yes 16 No

Whatz the main diff between Subquery and a Join..

Answer / srijina

join combines tables and retrieves data where as sub query
doesn't combines two table.join is more faster than subquery

Is This Answer Correct ?    4 Yes 3 No

Whatz the main diff between Subquery and a Join..

Answer / suramya biswas

Sub Query can be used for UPDATE,DELETE statements where as
Join Query is only used in SELECT statement

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Oracle General Interview Questions

How do I uninstall oracle 11g?

0 Answers  


1) What is ONE_SIZE_FITS_ALL approach? 2) Explain the Common & Variable Header of DATA FILE? 3) What are the Drawbacks to using OMF DB? and the Advantages? 4) List out the Advantages of Undo T.spaces over the Undo SEGMENT? 5) Difference between the Temporary tablespace with TEMPFILE and the Tablespace with TEMPORARY Keyword? 6) What are the situation extents are freeing for reuse.

0 Answers   TCS,


How to define a sub function?

0 Answers  


What is the data pump import utility?

0 Answers  


pls explain connect by prior with example and its real time use

3 Answers  


find out first highest salary?

10 Answers   Verinon Technology Solutions,


6. Display the client name and order date for all orders using the traditional method.

0 Answers   Wipro,


how to handle exceptions in post production

0 Answers  


What is Trigger in Oracle?

0 Answers   MCN Solutions,


how many outer joins are used in a single sql query? is there any limitations for using of outer joins?

2 Answers   BOB Technologies, Cap Gemini, IBM,


Name the various constraints used in oracle?

0 Answers  


Differentiate between pre-select and pre-query?

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)