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

24 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. In 1st part count (sports)=4

    ReplyDelete
  2. I have doubt in iv answer how 7800 will bethe answer when date is not there 31/01/98 in table

    ReplyDelete
    Replies
    1. Please understand the question that it demand the sum of Pay where date Datofapp is greater then 19980131.

      Delete
  3. Thanks for your help 💜💜💜

    ReplyDelete
  4. I have dout on questions (iv)

    ReplyDelete
    Replies
    1. Question demand the sum of Pay where date Datofapp is greater then 19980131

      Delete
  5. Unknown BGM

    ReplyDelete
  6. Thank you 💚💙💛🧡💜🖤

    ReplyDelete
  7. I think in (iv) the sum of pay is 8800, I hope you check the answer again.

    Btw your page has helped me for questions, I appreciate your efforts :)

    ReplyDelete
  8. My bad, 7800 answer is correct. Really sorry

    ReplyDelete
  9. In the 4th part the format of date is wrong so won't it give any error?

    ReplyDelete
  10. I'm also think that

    ReplyDelete
  11. I'm also think that

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post