Files
me50/8.sql
2026-04-15 10:49:53 +02:00

4 lines
393 B
SQL

-- write a SQL query to find the average height and weight, rounded to two decimal places, of baseball players who
-- debuted on or after January 1st, 2000. Return the columns with the name “Average Height” and “Average Weight”, respectively.
SELECT ROUND(AVG("height"), 2) AS "Average Height", ROUND(AVG("weight"), 2) AS "Average Weight" FROM "players" WHERE "debut" >= "01-01-2000";