Professional Documents
Culture Documents
questions. You will need to include the SQL statement and a screenshot.
2. Using COUNT, determine the number of players in the database based on their position.
3. What is the birth date of the youngest player on each team? List the birth date and the team name.
SELECT AVG(COUNT(id))
FROM players
GROUP BY team_id
5. Using the servicetablefee, determine the average discount that each department has offered for their services. Be
sure to include the service name and display the amount with 2 decimals.
1. COUNT
2. MIN or MAX
3. AVG or SUM
4. Nesting Example
FROM player
GROUP BY playername
Also be sure to use GROUP BY, HAVING, ROLLUP, CUBE, GROUPING SETS