Consider the following tables GAMES and PLAYER. Write SQL commands for the statements (a) to (d) and give outputs for SQL queries (e1) to (e4)
Relation: GAMES
| GCode | Game Name | Number | Prize Money | Schedule Date |
| 101 | Carom Board | 2 | 5000 | 23-Jan-2004 |
| 102 | Badminton | 2 | 12000 | 12-Dec-2003 |
| 103 | Table Tennis | 4 | 8000 | 14-Feb-2004 |
| 105 | Chess | 2 | 9000 | 01-Jan-2004 |
| 108 | Lawn Tennis | 4 | 25000 | 19-Mar-2004 |
Relation: PLAYER
| PCode | Name | Gcode |
| 1 | Nabi Ahmad | 101 |
| 2 | Ravi Sahai | 108 |
| 3 | Jatin | 101 |
| 4 | Nazneen | 103 |
(a) To display the name of all Games with their Gcodes
(b) To display details of those games which are having PrizeMoney more than 7000.
(c) To display the content of the GAMES table in ascending order of ScheduleDate.
(d) To display sum of PrizeMoney for each of the Number of participation groupings (as shown in column Number)
(e1) Select COUNT(DISTINCT Number) FROM GAMES;
(e2) Select MAX(ScheduleDate),MIN(ScheduleDate) FROM GAMES;
(e3) Select SUM(PrizeMoney) FROM GAMES;
(e4) Select DISTINCT Gcode FROM PLAYER;