I think answer B is the only correct answer because In SQL, a group function operates on a set of rows and returns a single value for each group. Group functions include AVG, COUNT, MAX, MIN, and SUM. These functions cannot be nested within one another. For example, in query A, the AVG function is nested within the MAX function which is not allowed. Similarly, in query C, D and E, the MAX function is nested within the AVG function which is also not allowed.
What do you think?
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
lucemqy
1 month, 3 weeks agoShrimathi
5 months, 2 weeks agoWingL
6 months agozouve
6 months, 2 weeks agoCyberP
7 months, 2 weeks agoMooonLight
8 months, 3 weeks agozouve
6 months, 2 weeks ago