Question: Consider a relational table T(A,B) where A and B integers and A is a primary key. T has 100 row. Which of the following SQL

Consider a relational table T(A,B) where A and B integers and A is a primary key. T has 100 row. Which of the following SQL queries are guaranteed to return a single row as a result:

A) SELECT MAX(A) FROM T B) SELECT MAX(B) FROM T

C) SELECT A, MAX(B) FROM T GROUP BY A HAVING MAX(B) = (SELECT MAX(B) FROM T)

D) SELECT B, MAX(A) FROM T GROUP BY B HAVING MAX(A) = (SELECT MAX(A) FROM T)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!