Which two statements would get the correct output?

Examine the structure of the employees table.

You want to display the maximum and minimum salaries of employees hired 1 year ago.
Which two statements would get the correct output?

Examine the structure of the employees table.

You want to display the maximum and minimum salaries of employees hired 1 year ago.
Which two statements would get the correct output?

A.
Option A

B.
Option B

C.
Option C

D.
Option D

Explanation:
Incorrect:
Not B, not D: You cannot use a GROUP BY clause in a WHERE statement.



Leave a Reply 2

Your email address will not be published. Required fields are marked *


Tim

Tim

A + C is correct but the explanation given is wrong.
You CAN use a GROUP BY in a WHERE statement.
However you can not use a group function (max/min) in a group by clause.