Course Overview
Reading SQL and writing SQL are different skills. You can follow every step of a tutorial, nod along to a JOIN explanation, and still sit in front of an empty editor in a placement test with no idea where to start. The only fix is writing queries, a lot of them, and finding out straight away whether each one is right.
That's the whole design of this course. It has 321 coding exercises, organized into 13 levels, and you write every query yourself in the editor built into the course. Each exercise checks your output when you run it. Wrong rows, a missing column or a sort in the wrong direction shows up immediately, so you fix it and run it again. Five short lectures at the start cover how to think before you write a query, the mistakes almost everyone makes, and how to use the course for interview preparation. After that, it's practice.
How the levels build
The first three levels are about getting comfortable. Level 1 has 50 exercises on SELECT, column aliases, DISTINCT and LIMIT, built around a product catalog for an electronics retailer, plus customer, supplier and employee directories. Filtering comes next in Level 2: price ranges, brand lists, LIKE patterns such as names that start with Galaxy or contain Air, and finding customers with no email or phone number. It ends with filtering problems from banking, hospitals, airlines, shipping and hotels, so the same WHERE logic shows up on unfamiliar tables. Sorting and single-row functions fill Level 3: cleaning imported supplier names, building employee initials, stripping hyphens from phone numbers, rounding a loan EMI and working out how many delivery trucks an order needs.
Levels 4 to 6 move into reporting. You'll write aggregate queries for KPI summaries, then GROUP BY by department, region and category, then HAVING clauses that stack conditions, such as departments with more than two people and an average above a threshold, or suppliers above a purchase total or with more than two orders. These are the queries behind most weekly business reports, and they're where a lot of people quietly get wrong answers. A WHERE clause that should have been a HAVING, or an average taken before a filter instead of after, still returns a tidy-looking table. Learning to spot that is half the point of these levels.
Levels 7 and 8 are joins. You start by joining employees to departments, then add projects, then clients, until you're writing four-table reports on client billing and resource allocation. Level 8 is the one interviewers love: LEFT JOIN, RIGHT JOIN and SELF JOIN problems that find what's missing. Employees with no project. Departments with no staff. An employee-to-manager hierarchy. It finishes with a data integrity audit that checks for records pointing at departments and clients that don't exist.
Levels 9 to 11 are the advanced tools. Subqueries come first, including correlated subqueries, EXISTS and NOT EXISTS, and harder questions such as customers who bought every product in a category. CTEs come next, from a single CTE to chained and layered ones that classify employees into bands and build a promotion eligibility report. Window functions close the run: ROW_NUMBER, RANK and DENSE_RANK, NTILE quartiles, LAG and LEAD comparisons, FIRST_VALUE and LAST_VALUE, running totals and moving averages.
Case studies and interview challenges
Level 12 is 20 business case studies, each in a different industry: retail, banking, hospitals, airlines, hotels, logistics, insurance, telecom, restaurants, pharmacies, cinemas, gyms, car rental, public transport and more. Each one asks you to build the numbers for a performance dashboard, which means choosing the right mix of joins, grouping and window functions yourself rather than being told which topic you're on.
Level 13 is 24 SQL interview challenges, the ones that keep coming up in technical rounds: second and Nth highest value, top three per department, customers who never ordered, duplicate emails, consecutive login days, a 7-day rolling average, gaps between order dates, missing invoice numbers, month-over-month growth, the median, a recursive reporting hierarchy and customer lifetime value. It ends with a capstone leaderboard challenge.
Mock interviews
The last section has five AI role plays: Junior SQL or Junior Data Analyst, Mid-Level Backend Developer (SQL heavy), Mid-Level Data Analyst, Senior Data Analyst or Analytics Engineer, and Senior SQL or Database Developer. You talk through problems with an AI interviewer, handle the follow-up questions and get feedback, as often as you want. Having both analyst and developer tracks matters, because a backend interview asks about SQL in a different way than an analytics interview does.
How to use it
Work through the levels in order if you're new to SQL. Already know the basics? Take the section challenge at the end of a level. If it's easy, move on, and if it isn't, go back into that level. Most levels end with one or more section challenges that combine what came before, so they're a quick check of where you really stand.
Who it's for, and who it isn't
This course suits students and freshers facing placement tests and online coding rounds, aspiring analysts who need to write reporting queries fast, and developers preparing for SQL-heavy interviews. It assumes nothing to start, but it's not a lecture course. If you want long video explanations of database theory, normalization or administration, this isn't the right fit. It's for people who learn by doing.
What you need is a browser. There's nothing to install and no database to set up.
Start with Level 1 or jump to the first section challenge, and let the results tell you where to go next.
FAQ
FAQ area empty
Course curriculum
-
Welcome to the Ultimate SQL Coding Practice Course
161 Xem trước -
SQL Problem-Solving Mindset: Think Before You Write a Query
388 Xem trước -
Common SQL Mistakes and the Debugging Mindset
514 Xem trước -
How to Use This Course for SQL Interview Preparation
606 -
Study Smarter: Get the Maximum Value from This SQL Practice Course
630
-
Product Catalog Overview
0 -
Display Product Names for the Mobile Application
0 -
Generate a Product Pricing Report
0 Xem trước -
Prepare a Product Catalog with Business-Friendly Column Names
0 Xem trước -
Preview the First Five Products
0 Xem trước -
Retrieve Complete Product Information
0 Xem trước -
Create an Inventory Stock Report
0 -
Display Product ID and Name
0 -
Display All Available Product Brands
0 -
Display All Product Categories
0 -
Preview the First Three Products
0 -
Create a Business-Friendly Product Report
0 -
Build a Customer Directory
0 -
Employee Contact Directory
0 -
List Unique Supplier Countries
0 -
Preview Recent Orders
0 -
Create a Customer Contact Report
0 -
Generate an Employee Directory
0 -
Executive Product Preview
0 -
Retrieve Product Brand Information
0 -
Display Product Prices Using Business-Friendly Column Names
0 -
Display Available Product Categories
0 -
Preview the First Four Products
0 -
Display Unique Product Brands
0 -
Product Catalog Preview for Executive Review
0 -
Generate a Warehouse Inventory Report
0 -
Prepare a Supplier Directory
0 -
Display Unique Warehouse Locations
0 -
Preview the First Three Suppliers
0 -
Create a Supplier Contact Report
0 -
Generate an Order Summary Report
0 -
Display Unique Order Statuses
0 -
Preview Customer Orders
0 -
Create an Executive Order Report
0 -
Display Customer Information
0 -
Display Unique Customer Countries
0 -
Preview Registered Customers
0 -
Employee Contact Export
0 -
Display Unique Departments
0 -
Executive Dashboard Preview
0 -
Generate a Customer Contact Report
0 -
Display Unique Customer Cities
0 -
Preview the First Three Customers
0 -
Create an Employee Contact List
0 -
Product Catalog Preview for Executive Review
0 -
Sales Dashboard Data Export
0 -
Display Unique Sales Regions
0 -
Preview Recent Sales Records
0 -
Executive Sales Summary Report
0 -
TechMart Global Product Export (Final Challenge)
0
-
Find Products in the Laptop Category
0 -
Find Products Manufactured by Apple
0 -
Find Premium Products Costing More Than $1000
0 -
Find Products with High Stock Availability
0 -
Find Apple Laptops
0 -
Find Apple or Samsung Products
0 -
Find Products That Are Not Apple
0 -
Find Budget-Friendly Products
0 -
Find Products with Low Inventory
0 -
Find Products That Are Not in the Laptop Category
0 -
Find Mid-Range Products
0 -
Find Premium Products Outside the Promotional Range
0 -
Find Products from Selected Brands
0 -
Exclude Selected Brands
0 -
Find Apple Products Within the Promotional Price Range
0 -
Find Products Starting with "Galaxy"
0 -
Find Products Ending with "Pro"
0 -
Find Products Containing "Air"
0 -
Find Products with Five-Letter Brand Names
0 -
Exclude Galaxy Products
0 -
Find Products with Model Numbers Starting with "M"
0 -
Find Products Containing "Book"
0 -
Find Customers Without Email Addresses
0 -
Find Customers with Email Addresses
0 -
Find Apple Products Containing "Air"
0 -
Find Premium Apple Products
0 -
Find Samsung Products with Available Stock
0 -
Find Products from Apple or Lenovo Above $1000
0 -
Find Products Excluding Apple and Samsung
0 -
Inventory Review Report (Section Challenge)
0 -
Find Available Apple and Samsung Products
0 -
Find Premium Laptops or Tablets
0 -
Find Products Without "Pro" in Their Name
0 -
Find Customers Missing Phone Numbers
0 -
Customer Email Campaign (Section Challenge)
0 -
Identify High-Value Active Savings Accounts
0 -
Identify Admitted Patients with Active Insurance Coverage
0 -
Identify Delayed International Flights Requiring Passenger Notification
0 -
Identify Heavy Pending Shipments
0 -
HR Salary Eligibility Review
0 -
Organize Hotel Bookings by Check-in Date
0 -
Employees with More Than 5 Years of Experience
0
-
Rank Products by Selling Price (Ascending)
0 -
Rank Employees by Annual Salary (Highest to Lowest)
0 -
Prioritize Customer Support Tickets by Severity and Creation Time
0 -
Display Latest Insurance Claims First
0 -
Sort Warehouse Inventory by Category and Product Name
0 -
Display Student Exam Results by Highest Score
0 -
Display Sales Representatives by Region and Highest Revenue
0 -
Sort Manufacturing Orders by Production Priority
0 -
Executive Product Catalog Report (Section Challenge)
0 -
Organize Hotel Bookings by Check-in Date
0 -
Top 5 Highest Revenue Customers
0 -
Display the Three Lowest Inventory Products
0 -
Top 10 Highest-Paid Employees
0 -
Five Most Recent Customer Orders
0 -
Executive Dashboard – Top 5 Profitable Branches (Section Challenge)
0 -
Convert Customer Names to Uppercase for Mailing Labels
0 -
Display Employee Email Addresses in Lowercase
0 -
Identify Long Product Names Using LENGTH()
0 -
Remove Extra Spaces from Supplier Names
0 -
Generate Employee Initials Using SUBSTR()
0 -
Standardize Phone Numbers by Removing Hyphens
0 -
Locate the '@' Symbol in Employee Email Addresses
0 -
Extract Employee Codes from Company IDs
0 -
Generate Product Display Names
0 -
Clean Imported Supplier Records (Section Challenge)
0 -
Generate Corporate Email Usernames
0 -
Replace Product Category Codes with Readable Names
0 -
Build Executive Customer Display Labels (Section Challenge)
0 -
Calculate Rounded Monthly Loan EMI
0 -
Calculate Absolute Inventory Variance
0 -
Round Product Prices for Marketing Campaigns
0 -
Calculate Delivery Trucks Required Using CEIL()
0 -
Calculate Full Cartons Using FLOOR()
0 -
Identify Even and Odd Invoice Numbers Using MOD()
0 -
Calculate Rounded Profit Margin Percentage
0 -
Executive Financial Dashboard (Section Challenge)
0
-
Count Total Employees
0 -
Calculate Total Monthly Sales
0 -
Calculate Average Employee Salary
0 -
Find the Highest Product Price
0 -
Executive KPI Dashboard (Section Challenge)
0 -
Count Active Customer Accounts
0 -
Calculate Total Revenue from Delivered Orders
0 -
Calculate Average Rating of Published Courses
0 -
Executive Sales Summary (Section Challenge)
0 -
Find the Lowest Insurance Claim Amount
0 -
Find the Highest Hospital Bill
0 -
Manufacturing Production Summary
0 -
Banking Transaction Dashboard
0 -
Executive Airline Revenue Dashboard (Section Challenge)
0
-
Count Employees by Department
0 -
Calculate Total Sales by Region
0 -
Calculate Average Salary by Department
0 -
Find the Highest Order Value by Customer
0 -
Executive Department KPI Dashboard (Section Challenge)
0 -
Count Active Employees by Department
0 -
Calculate Completed Project Budget by Business Unit
0 -
Calculate Average Customer Satisfaction Score by Support Team
0 -
Highest Sales Order by Sales Region
0 -
Executive Regional Performance Dashboard (Section Challenge)
0 -
Rank Departments by Total Salary Expense
0 -
Rank Product Categories by Revenue
0 -
Rank Cities by Average Property Price
0 -
Rank Airlines by Maximum Ticket Price
0 -
Executive Business Performance Dashboard (Section Challenge)
0
-
Departments with More Than Two Employees
0 -
Regions with Revenue Greater Than ₹500,000
0 -
Departments with Average Salary Above ₹1,000,000
0 -
Customers with Highest Single Order Above ₹200,000
0 -
Executive Regional Performance Dashboard (Section Challenge)
0 -
Product Categories with Revenue Above ₹400,000
0 -
Cities with More Than Three Successful Deliveries
0 -
Airlines with Average Ticket Price Above ₹90,000
0 -
Suppliers with Highest Purchase Above ₹500,000
0 -
Executive Sales Performance Dashboard (Section Challenge)
0 -
Departments with More Than 2 Employees and Average Salary Above ₹1,000,000
0 -
Product Categories with Revenue Above ₹400,000 and More Than Two Sales
0 -
Suppliers with More Than One High-Value Purchase
0 -
Airlines with More Than Two Confirmed Flights and Average Ticket Price Above ₹100,000
0 -
Executive Business Intelligence Dashboard (Section Challenge)
0 -
Departments with More Than 3 Employees OR Average Salary Above ₹1,200,000
0 -
Sales Regions with Revenue Between ₹500,000 and ₹800,000
0 -
Airlines with Average Ticket Price Between ₹100,000 and ₹150,000
0 -
Suppliers with Purchase Totals Above ₹800,000 OR More Than Two Orders
0 -
Executive Performance Dashboard (Section Challenge)
0
-
Display Employee Names with Their Department Names
0 -
Display Employees with Department Location
0 -
Display Employees Earning More Than ₹1,000,000 with Department Name
0 -
Count Employees in Each Department
0 -
Executive HR Department Dashboard (Section Challenge)
0 -
Display Employees Along with Their Department and Assigned Project
0 -
Display Employees Working on Active Projects
0 -
Department-wise Number of Employees Assigned to Projects
0 -
Total Project Budget Managed by Each Department
0 -
Executive Project Resource Dashboard (Section Challenge)
0 -
Employee Project Allocation Report
0 -
Employees Working on Active Client Projects
0 -
Client-wise Employee Allocation Summary
0 -
Department-wise Average Salary by Client
0 -
Executive Client Portfolio Dashboard (Challenge)
0 -
Active Client Project Budget Summary
0 -
Department Contribution Across Clients
0 -
Top 3 Highest Budget Projects
0 -
Client Resource Utilization Report
0 -
Executive Enterprise Dashboard (Section Challenge)
0 -
Active Project Duration Report
0 -
Monthly Client Billing Report
0 -
High Performing Employee Dashboard
0 -
Enterprise Executive Analytics Dashboard (Final Challenge)
0
-
Employees Without Assigned Projects
0 -
Projects Without Assigned Employees
0 -
Departments Without Employees
0 -
Clients Without Active Projects
0 -
Employee–Manager Hierarchy (SELF JOIN)
0 -
Employees Reporting to Each Manager (SELF JOIN + COUNT)
0 -
Employees and Their Managers Working in the Same Department
0 -
Departments with No Managers Assigned
0 -
RIGHT JOIN Concept
0 -
Employee Reporting Hierarchy Dashboard (Section Challenge)
0 -
Departments Without Employees or Employees Without Departments (FULL OUTER JOIN Concept)
0 -
Employees Assigned to Invalid Departments
0 -
Projects Without Clients
0 -
Clients Without Projects
0 -
Enterprise Data Integrity Audit (Section Challenge)
0
-
Employees Earning Above the Company Average Salary
0 -
Employees Working in the Highest Budget Project
0 -
Departments with Above-Average Employee Count
0 -
Employees Working on Projects Above the Average Budget
0 -
Highest Paid Employee in Each Department (Correlated Subquery)
0 -
Departments with No Employees (NOT EXISTS)
0 -
Clients That Have Active Projects (EXISTS)
0 -
Employees Working on Completed Projects (IN Subquery)
0 -
Departments with Employees Earning Above ₹15,00,000 (EXISTS)
0 -
Clients Without Any Active Projects (NOT EXISTS) Learning Objective
0 -
Employees Earning More Than Their Department Average (Correlated Subquery)
0 -
Projects with Budgets Greater Than All Completed Projects
0 -
Employees Working for Clients in the Banking Industry (IN Subquery)
0 -
Departments Where Every Employee Earns More Than ₹10,00,000
0 -
Enterprise Salary Audit Dashboard (Section Challenge)
0 -
Products Never Ordered (NOT EXISTS)
0 -
Customers Who Purchased Every Product in a Category
0 -
Employees Assigned to the Largest Project Team
0 -
Departments with the Highest Average Salary
0 -
Executive Compensation & Workforce Intelligence Dashboard (Section Challenge)
0
-
Display Employees with Department Names Using a CTE
0 -
Employees Earning Above the Company Average Using a CTE
0 -
Department Salary Summary Using a CTE
0 -
Departments with Above-Average Salary Using Chained CTEs
0 -
Highest Paid Employee in Each Department Using CTE
0 -
Enterprise KPI Dashboard Using Multiple CTEs
0 -
Employees Earning Above Their Department Average Using CTE
0 -
Top Performing Departments Using Multiple CTEs
0 -
Employee Salary Band Classification Using CTE
0 -
Enterprise Workforce Analytics Dashboard (Section Challenge)
0 -
Calculate Department Salary Rank Using Multiple CTEs
0 -
Employees Above Company Average Salary Using Layered CTEs
0 -
Department Workforce Summary with Salary Categories
0 -
High-Performing Departments Using Multiple CTEs
0 -
Employee Experience Dashboard Using CTEs
0 -
Executive Workforce KPI Dashboard (Section Challenge)
0 -
Employee Promotion Eligibility Report Using Multiple CTEs
0 -
Department Budget Analysis Using Chained CTEs
0 -
Enterprise Talent Distribution Report
0 -
Enterprise Executive Workforce Dashboard (Final Section Challenge)
0
-
Assign Row Numbers to Employees
0 -
Rank Employees by Salary Within Each Department
0 -
Identify the Top-Paid Employee in Every Department
0 -
Rank Employees Using RANK()
0 -
Department Salary Ranking Using RANK()
0 -
Rank Employees Using DENSE_RANK()
0 -
Department-wise Dense Salary Ranking
0 -
Top 2 Highest Paid Employees in Each Department
0 -
Company Salary Percentile Groups Using NTILE()
0 -
Executive Salary Quartile Dashboard (Section Challenge)
0 -
Compare Current Salary with Previous Salary Using LAG()
0 -
Compare Employee Salary Within Each Department Using LAG()
0 -
Compare Current Salary with Next Salary Using LEAD()
0 -
Find the Highest Salary in Every Department Using FIRST_VALUE()
0 -
Find the Lowest Salary in Every Department Using LAST_VALUE()
0 -
Find the Lowest Salary in Every Department Using LAST_VALUE()
0 -
Salary Gap Analysis Using FIRST_VALUE() and LAG()
0 -
Calculate Running Total of Salaries Using SUM() OVER()
0 -
Department Running Payroll Using Window Functions
0 -
Calculate Moving Average Salary Using Window Functions
0 -
Executive Payroll Analytics Dashboard (Final Section Challenge)
0
-
Monthly Sales Performance Dashboard
0 -
Customer Purchase Analysis Dashboard
0 -
Hospital Department Performance Dashboard
0 -
Banking Branch Performance Dashboard
0 -
Inventory & Warehouse Performance Dashboard
0 -
University Course Enrollment Analytics Dashboard
0 -
Manufacturing Production Performance Dashboard
0 -
Airline Operations Performance Dashboard
0 -
Hotel Chain Performance Dashboard
0 -
Logistics & Delivery Performance Dashboard
0 -
Insurance Claims Performance Dashboard
0 -
Telecommunications Network Performance Dashboard
0 -
Restaurant Chain Performance Dashboard
0 -
E-Commerce Marketplace Seller Performance Dashboard
0 -
Retail Supermarket Sales Performance Dashboard
0 -
Pharmacy Chain Sales & Inventory Performance Dashboard
0 -
Cinema Chain Box Office Performance Dashboard
0 -
Fitness Center Membership Performance Dashboard
0 -
Car Rental Company Performance Dashboard
0 -
Smart City Public Transport Performance Dashboard
0
-
Find the Second Highest Salary
0 -
Find the Nth Highest Salary
0 -
Employees Earning Above Their Department Average Salary
0 -
Customers Who Never Placed an Order
0 -
Top 3 Highest Paid Employees in Each Department
0 -
Department Highest Salary
0 -
Monthly Running Revenue
0 -
Consecutive Login Days
0 -
Find Duplicate Email Addresses
0 -
Products Never Sold
0 -
Customers with the Highest Total Purchase Amount
0 -
Rank Salespersons by Quarterly Revenue
0 -
Calculate the 7-Day Rolling Average of Daily Sales
0 -
Find the First Order Placed by Every Customer
0 -
Find the Latest Salary of Every Employee
0 -
Customers Who Made Purchases Every Month
0 -
Display Employee Reporting Hierarchy Using Recursive CTE
0 -
Find Missing Invoice Numbers
0 -
Identify Gaps Between Customer Order Dates
0 -
Calculate Monthly Revenue Growth Compared to the Previous Month
0 -
Find the Median Employee Salary
0 -
Find the Highest Revenue Region in Each Quarter
0 -
Calculate Customer Lifetime Value (CLV)
0 -
Enterprise Sales Leaderboard (Capstone Interview Challenge)
0
Requirment
-
A computer with a browser. Every exercise runs in the coding editor inside the course, so there is nothing to install.
-
No prior SQL is needed to begin. Level 1 starts at SELECT, and if you already know the basics you can jump to the level that challenges you.
Outcomes
-
Write SELECT, DISTINCT, ORDER BY and LIMIT queries that turn raw product, customer and order tables into clean, readable reports.
-
Filter with LIKE patterns, IN, BETWEEN and NULL checks to return exactly the rows a request describes, with nothing extra or missing.
-
Clean text and numbers with UPPER, TRIM, SUBSTR, REPLACE, ROUND, CEIL and MOD to prepare mailing labels, IDs and finance figures.
-
Summarize data with GROUP BY and HAVING, including filters that combine counts, totals and averages with AND, OR and BETWEEN.
-
Find missing and orphaned records with LEFT JOIN, SELF JOIN and NOT EXISTS, such as projects with no staff or employees with no manager.
-
Break hard problems into correlated subqueries, chained CTEs and a recursive CTE that walks an employee reporting hierarchy.
-
Rank, compare and roll up rows with ROW_NUMBER, DENSE_RANK, NTILE, LAG, LEAD, FIRST_VALUE, running totals and moving averages.
-
Solve classic SQL interview problems: Nth highest value, consecutive login days, missing invoice numbers, the median and customer lifetime value.
0 Student
1 Course
0 review