>>Previous>>
SubQueries
A Select statement within another SELECT, INSERT, UPDATE or DELETE statement. Subqueries can produce the same results as Joins. But Subqueries are more recommandable than Joins and will take less IO cycles than joins.,
Remember:
1) One can have as many nested subqueries in one as one want, there is no limit on this.
2) The subquery is always enclosed in parentheses unless used in Update statement.
3) Subquery can not contain an Order By, Compute, or SELECT INTO Clause ie in Where list!!
4) Subquery can not be used in the Order By clause.
Example:
Sql> SELECT distinct au_fname,au_lname, state
FROM authors where state IN
(SELECT state from stores);
>>>Next>>>
1 comments:
Such a nice blog, I really like what you write in this blog, I also have some relevant Information about Best HR Training In Hyderabad | Hr training institute in Hyderabad! if you want more information.
Oracle Fusion HCM Online Training
Oracle Fusion Financials Online Training
Post a Comment