Chapter 18mChallenge

SQL Introduction — Challenge

Query language for databases.

This content is not yet available in si. Showing English version.

View in English →

Adults in India

easy

Adults in India

Write a SQL query that returns the name and age of all users where age >= 18 AND country = 'India', ordered by age descending.

Expected Result

nameage
Rahul Verma25
Aarav Sharma22
Priya Patel19
Test cases (1)
1 · returns 3 rows with correct data
expected: name | age -------------+---- Rahul Verma | 25 Aarav Sharma | 22 Priya Patel | 19
sqlSQLite · 3 tables
Loading editor...