ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Databases  >>  Oracle  >>  Oracle General
 
 


 

 
 Oracle General interview questions  Oracle General Interview Questions
 OCI interview questions  OCI Interview Questions
 Architecture interview questions  Architecture Interview Questions
 Oracle Security interview questions  Oracle Security Interview Questions
 Database Management interview questions  Database Management Interview Questions
 Forms Reports interview questions  Forms Reports Interview Questions
 Oracle AllOther interview questions  Oracle AllOther Interview Questions
Question
Whatz the main diff between Subquery and a Join
 Question Submitted By :: Manam
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Whatz the main diff between Subquery and a Join
Answer
# 1
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 ?    32 Yes 11 No
Rajesh
 
  Re: Whatz the main diff between Subquery and a Join
Answer
# 2
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 ?    17 Yes 4 No
Pardeep Chadha
 
 
 
  Re: Whatz the main diff between Subquery and a Join
Answer
# 3
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 ?    11 Yes 9 No
Mythili
 
  Re: Whatz the main diff between Subquery and a Join
Answer
# 4
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 ?    8 Yes 7 No
Kuldeep Singh
 
  Re: Whatz the main diff between Subquery and a Join
Answer
# 5
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 ?    1 Yes 0 No
Siva
 
  Re: Whatz the main diff between Subquery and a Join
Answer
# 6
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 ?    2 Yes 0 No
Anbu
 
  Re: Whatz the main diff between Subquery and a Join
Answer
# 7
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 ?    1 Yes 1 No
A.n.v.v.siva Kumar
 

 
 
 
Other Oracle General Interview Questions
 
  Question Asked @ Answers
 
What is the difference between normal and corelated subqueries?  2
SQL> CREATE TABLE to_table 2 (col1 NUMBER); Table created. SQL> CREATE OR REPLACE TRIGGER statement_trigger 2 AFTER INSERT ON to_table 3 BEGIN 4 DBMS_OUTPUT.PUT_LINE('After Insert Statement Level'); 5 END; 6 / Trigger created. SQL> CREATE OR REPLACE TRIGGER row_trigger 2 AFTER INSERT ON to_table 3 FOR EACH ROW 4 BEGIN 5 DBMS_OUTPUT.PUT_LINE('After Insert Row Level'); 6 END; 7 / Trigger created. SQL> INSERT INTO TO_TABLE VALUES(1); After Insert Row Level After Insert Statement Level 1 row created. SQL> BEGIN 2 INSERT INTO TO_TABLE VALUES(2); 3 INSERT INTO TO_TABLE VALUES(3); 4 INSERT INTO TO_TABLE VALUES(4); 5 INSERT INTO TO_TABLE VALUES(5); 6 INSERT INTO TO_TABLE VALUES(6); 7 INSERT INTO TO_TABLE VALUES(7); 8 INSERT INTO TO_TABLE VALUES(8); 9 INSERT INTO TO_TABLE VALUES(9); 10 INSERT INTO TO_TABLE VALUES(0); 11 END; 12 / WAT LL BE THE O/P??? XPLAIN IT>>>> Infosys1
waht is referencial integrity? Semantic-Space2
what is the uses of cusor Perot-Systems3
26. Display the earliest shipping date in the format: DD/MON/YYYY Wipro5
what is the use of composite key constraint?  2
17. Display the order number and average item cost for each order. Wipro1
how to select alphabets in a one column , for this the table name is PA_TASKS and column name is TASK_NUMBER, In TASK_NUMBER the data like this 1.1.3NN,1.1.4NN,1.5.1NN,1.3.2NE,1.5NN,1NN,1.2NE,1CE , For this i need to disply output as only NN,but not other alphabets, if NN is thre means i should display , otherwise leave that blank or empty Its some urgent requirement ,thanks in advance  1
how will I find the first 5 highest salaried employees in each dept in oracle. IBM13
What are main difference between Stored Procedure and Functions. CA3
What are the factors that affect OPTIMIZER in choosing an Optimization approach ?  1
a query to select maxmun 3 salaries of employee table Polaris10
why can't we assign not null constraint as table level constraint CTS2
What is a Database instance ? Explain?  2
SQLERRM is a a. Constraint b. Pre Defined Exception c. Pseduocolumn d. Constant e. None of Above. Cognizent2
What are the type of Synonyms?  1
when do u go for hash partitioning?  1
What are the components of Logical database structure of ORACLE database?  3
pls explain connect by prior with example and its real time use  3
What are the factors causing the reparsing of SQL statements in SGA?  1
 
For more Oracle General Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2009  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com