If a subquery is used in the FROM clause of a query, how are the subquery’s results referenced in other clauses of the query?

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter12: Subqueries And Merge Statements
Section: Chapter Questions
Problem 5RQ
icon
Related questions
Question

If a subquery is used in the FROM clause of a query, how are the subquery’s results referenced in other clauses of the query?

Expert Solution
Step 1

Results of a sub query used in FROM clause

  • The FROM clause is used to list tables and any joins required for the SQL statement.
  • When sub queries are used in FROM clause, then they act as a table used for selecting columns and then joins to other tables.
  • It can be used to specify a sub query expression in SQL.
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Multiple table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage