Q.
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'
Answer :-
(i)
COUNT (DISTINCT SPORTS) |
4 |
(ii)
MIN(Age) |
34 |
(iii)
AVG(Pay) |
1100 |
(iv)
SUM(Pay) |
7800 |
Thank you
ReplyDeleteWelcome : )
DeleteThe sum will be 8800
ReplyDeleteYou are wrong, it will be 7,800.
DeleteFirst one is 1996
DeleteThe sum is incorrect
ReplyDeletePlease check it again it is correct.
DeletePlease correct it
ReplyDeletePlease check it again it is correct.
DeleteAnonymous you are wrong... It will be 7800...
ReplyDeleteYes.
DeleteMine is 8000
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )