SELECT first_name, height, NTILE(4) OVER (ORDER BY height ASC) as height_quartile FROM patients;
Write your query and click "Run Query" (Ctrl + Enter) to see results and testcase validation.