Test Index

CBSE Class 12 Computer Science 2024 Paper Compartment Get it on Google PlayDownload on the App Store

© examsnet.com
Question : 31 of 35
Marks: +1, -0
Consider the tables GAMES and PLAYERS given below :
Table : GAMES
GCodeGameNameTypeNumberPrizeMoney
101Carrom BoardIndoor25000
102BadmintonOutdoor212000
103Table TennisIndoor4NULL
104ChessIndoor29000
105Lawn TennisOutdoor425000
Table : PLAYERS
PCodeNameGCode
1Nabi Ahmad101
2Ravi Sahai108
3Jatin101
4Nazneen103
Write SQL queries for the following :
(i) Display the game type and average number of games played in each type.
(ii) Display prize money, name of the game, and name of the players from the tables Games and Players.
(iii) Display the types of games without repetition.
(iv) Display the name of the game and prize money of those games whose prize money is known.
Advertisements
Go to Question: