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

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.

Subject: Database Systems

Topic: SQL & Query Languages

Options:

  1. Option A: Where, having
  2. Option B: Having, where
  3. Option C: Group by, having
  4. Option D: Group by, where

Correct Answer:

Option B: Having, where

Explanation:

To include aggregate functions having clause must be included after where.

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

Aggregate functions can be used in the select list or theBlankclause of a select statement or subquery. They cannot be used in a Blank 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

The ________ keyword is used to access attributes of preceding tables or subqueries in the from 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?