UpScorer Logo
UPSCORER
MAIN
Dashboard
Explore
MY LEARNING
My Learning
Test Series
PRACTICE & DRILLS
PYQs Hub
Topic Practice
Mini Test
Cheat Sheets
Flashcards
Exam Arena
PROGRESS
Analytics
Weakness Analysis
Saved & Revision
OTHER
Jobs & Opportunities
Settings
  1. Home
  2. Questions

The ________ keyword is used to access attributes of preceding tables or subqueries in the from clause.

Subject: Database Systems

Topic: SQL & Query Languages

Options:

  1. Option A: In
  2. Option B: Lateral
  3. Option C: Having
  4. Option D: With

Correct Answer:

Option B: Lateral

Explanation:

Eg : SELECT name, salary, avg salary FROM instructor I1, lateral (SELECT avg(salary) AS avg salary FROM instructor I2 WHERE I2.dept name= I1.dept name); Without the lateral clause, the subquery cannot access the correlation variable I1 from the outer query.

HomeSubjectsDatabase SystemsSQL & Query Languages
UpScorer
Database SystemsSQL & Query LanguagesMEDIUM
Practice Problem+1 Mark

The Blank keyword is used to access attributes of preceding tables or subqueries in the from clause.

Select your answer:

Practice More on Database Systems

Test your speed with timer, instant solutions, and ranking analytics in our 100% Free Practice Arena.

Database Systems

Subject Syllabus Hub

Related Questions in this Topic

Q1MEDIUM

SELECT dept_name , ID , avg ( salary ) FROM instructor GROUP BY dept_name; This statement IS erroneous because

Q2MEDIUM

SQL applies predicates in the _______ clause after groups have been formed, so aggregate functions may be used.

Q3MEDIUM

Aggregate functions can be used in the select list or the_______clause of a select statement or subquery. They cannot be used in a ______ clause.

Q4MEDIUM

Which of the following creates a temporary relation for the query on which it is defined?

Q5MEDIUM

WITH max_budget ( VALUE ) AS ( SELECT MAX ( budget ) FROM department ) SELECT budget FROM department , max_budget WHERE department . budget = MAX budget . value; In the query given above which one of the following is a temporary relation?