Q. Given the following table :
Give the output of following SQL statements:
(i) SELECT COUNT (DISTINCT SPORTS) FROM Club;
(ii) SELECT MIN(Age) FROM CLUB WHERE Sex = ‘F’ ;
(iii) SELECT AVG(Pay) FROM CLUB WHERE Sports = 'KARATE’ ;
(iv) SELECT SUM(Pay) FROM CLUB WHERE Datofapp > '31/01/98’ ;
Consider this table --
You can understand by seeing this video ---
Answer =
(i)
COUNT
(DISTINCT SPORTS)
|
4
|
(ii)
MIN(Age)
|
34
|
(iii)
AVG(Pay)
|
1100.0
|
(iv)
SUM(Pay)
|
7800
|
In 1st part count (sports)=4
ReplyDeleteok. :0
DeleteI don't understand questions (iv)
DeleteI have doubt in iv answer how 7800 will bethe answer when date is not there 31/01/98 in table
ReplyDeletePlease understand the question that it demand the sum of Pay where date Datofapp is greater then 19980131.
DeleteThanks for your help 💜💜💜
ReplyDeleteWelcome :)
DeleteI have dout on questions (iv)
ReplyDeleteQuestion demand the sum of Pay where date Datofapp is greater then 19980131
DeleteThanks
ReplyDeleteWelcome 😊😊
DeleteUnknown BGM
ReplyDelete??
DeleteThank you 💚💙💛🧡💜🖤
ReplyDeleteWelcome 😊😊😊
DeleteI think in (iv) the sum of pay is 8800, I hope you check the answer again.
ReplyDeleteBtw your page has helped me for questions, I appreciate your efforts :)
You are wrong.
DeleteMy bad, 7800 answer is correct. Really sorry
ReplyDeleteOk. No problem.
DeleteHi
DeleteHi
DeleteIn the 4th part the format of date is wrong so won't it give any error?
ReplyDeleteI'm also think that
ReplyDeleteI'm also think that
ReplyDeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )