Chapter 18mChallenge
SQL Introduction — Challenge
Query language for databases.
This content is not yet available in bn. Showing English version.
View in English →Adults in India
easyAdults 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
| name | age |
|---|---|
| Rahul Verma | 25 |
| Aarav Sharma | 22 |
| Priya Patel | 19 |
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...