AI LabExerciseFlashcardChallenge
🗄️SQL ટ્યુટોરિયલ
Activities
ExerciseCode EditorReferenceSnippetsCheatsheetsCommunityFlashcardBlogCode ChallengeAI LabsCertificate
Lessons
SQL Home
01SQL Introduction
02SQL WHERE
03SQL ORDER BY
04SQL JOIN
05JOINs
06GROUP BY

Code Challenges

Code challenges for SQL. Each challenge links to its lesson page where you can solve it with live code execution.

2 challenges · 1 lessons
01SQL Introduction
2 challenges
# Products per Category Write a query that shows each product `category` and the number of products in it (`COUNT(*)`), aliased as `n`. ## Expected Result | category | n | |----------|---| | Accessories | 2 | | Electronics | 4 | | Stationery | 2 |medium# 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 | name | age | |------|-----| | Rahul Verma | 25 | | Aarav Sharma | 22 | | Priya Patel | 19 |easy

w3primecode is a free multilingual platform to learn programming — tutorials, runnable code, AI tutor, spaced-repetition flashcards, and verifiable certificates, all in 14 languages.

Product

Company

For Agencies

Newsletter

Weekly coding tips in your language

Available Languages

Englishहिन्दीবাংলাमराठीతెలుగుதமிழ்ગુજરાતીಕನ್ನಡമലയാളംଓଡ଼ିଆਪੰਜਾਬੀनेपालीརྫོང་ཁසිංහල

© 2026 w3primecode. All rights reserved.