Difference between join and a subquery?
Answer Posted / neo devan
A query inside a query or next level query is called
subquery, a subquery can return 1 or more values to the
main query.
Ex: select * from emptable where deptno=(select deptno from
saltable where rownum=1);
A Join is used to query two tables, or views.
Ex: select * from emptable inner join saltable on
emptable.deptno=saltable.deptno;
| Is This Answer Correct ? | 18 Yes | 7 No |
Post New Answer View All Answers
How to define an external table with a text file?
State all possible different index configurations a table can possibly have?
What do you mean by a tablespace?
What is a oracle database?
What are the logical operations?
What is memory advisor in Oracle?
What is a nvl function?
What is sharded cluster?
Explain an index segment?
What are ddl statements in oracle?
How to get execution path reports on query statements?
Explain do view contain data?
What exactly do quotation marks around the table name do?
is there a tool to trace queries, like profiler for sql server?
What is the difference between count (*), count (expression), count (distinct expression)?