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
Get step-by-step solutions from verified subject matter experts
