Skip to main content
Practice HubInteractive LabsSQL Interactive Practice Lab

SQL Interactive Practice Lab & Interview Accelerator

Execute genuine SQL queries with sub-millisecond execution plans, solve 100+ challenges, and simulate technical hiring interviews.

Daily SQL ChallengeStreak: 1d

Create Index and Measure Query Plan

Overall Solved0 / 105 (0%)
#1

Select All Product Catalog Details

SQL Basics•beginner
#2

Project Discounted Retail Prices

SQL Basics•beginner
#3

Distinct Customer Countries

SQL Basics•beginner
#4

Static System Status Projection

SQL Basics•beginner
#5

Employee Name and Role Projection

SELECT Statements•beginner
#6

Department Budget and Location

SELECT Statements•beginner
#7

Course Credit Overview

SELECT Statements•beginner
#8

Customer Bank Balances

SELECT Statements•beginner
#9

Filter High-Ticket Products

WHERE Conditions•easy
#10

Filter Engineering Staff with High Salaries

WHERE Conditions•easy
#11

Find Completed or High-Value Orders

WHERE Conditions•easy
#12

Find Customers with NULL Loyalty Tiers or Specific Country

WHERE Conditions•easy
#13

Sort Products by Price Descending

ORDER BY•easy
#14

Multi-Column Sorting on Employees

ORDER BY•easy
#15

Sort Students by GPA

ORDER BY•easy
#16

Order Transactions by Timestamp

ORDER BY•easy
#17

Top 3 Most Expensive Catalog Products

LIMIT and OFFSET•easy
#18

Paginated Catalog View (Page 2)

LIMIT and OFFSET•easy
#19

Top 5 Paid Employees

LIMIT and OFFSET•easy
#20

Second Highest Product Price

LIMIT and OFFSET•intermediate
#21

Total E-Commerce Revenue

Aggregate Functions•easy
#22

Average Product Rating and Price

Aggregate Functions•easy
#23

Employee Salary Range Analysis

Aggregate Functions•easy
#24

Count of Active Software Projects

Aggregate Functions•easy
#25

Product Count per Category

GROUP BY•intermediate
#26

Department Payroll Distribution

GROUP BY•intermediate
#27

Average GPA by Major

GROUP BY•intermediate
#28

Transaction Count by Status

GROUP BY•intermediate
#29

Categories with Multiple High-Priced Products

HAVING•intermediate
#30

Departments with More Than 2 Employees

HAVING•intermediate
#31

Customers with More than One Completed Order

HAVING•intermediate
#32

High Volume Merchant Accounts

HAVING•intermediate
#33

Product Details with Category Names

INNER JOIN•intermediate
#34

Employees and Department Information

INNER JOIN•intermediate
#35

Customer Completed Order Totals

INNER JOIN•intermediate
#36

Student Course Enrollments with Professor

INNER JOIN•intermediate
#37

All Customers and Their Orders (Including Zero Orders)

LEFT JOIN•intermediate
#38

Identify Customers Who Never Placed an Order

LEFT JOIN•intermediate
#39

All Departments and Assigned Employees

LEFT JOIN•intermediate
#40

All Products and Their Review Ratings

LEFT JOIN•intermediate
#41

Emulate RIGHT JOIN: Orders with Customers

RIGHT JOIN•intermediate
Pro Challenge
#42

Right Outer Logic: Projects and Departments

RIGHT JOIN•intermediate
Pro Challenge
#43

Enrollments Preserved Right Join Logic

RIGHT JOIN•intermediate
Pro Challenge
#44

Merchant Transactions Right Perspective

RIGHT JOIN•intermediate
Pro Challenge
#45

Full Outer Emulation: Users and Orders

FULL OUTER JOIN•advanced
Pro Challenge
#46

Departments and Employees Full Roster

FULL OUTER JOIN•advanced
Pro Challenge
#47

Products and Reviews Full Coverage

FULL OUTER JOIN•advanced
Pro Challenge
#48

Accounts and Transactions Comprehensive Union

FULL OUTER JOIN•advanced
Pro Challenge
#49

Employee and Direct Manager Hierarchy

SELF JOIN•intermediate
#50

Employees Earning More Than Their Manager

SELF JOIN•advanced
Pro Challenge
#51

Category Hierarchy Self Join

SELF JOIN•intermediate
#52

Find Peer Employees in the Same Department

SELF JOIN•intermediate
Pro Challenge
#53

Products Priced Above Catalog Average

Subqueries•intermediate
#54

Employees Earning Above Department Average

Subqueries•intermediate
#55

Students Enrolled in CS101

Subqueries•intermediate
#56

Departments with No Assigned Staff

Subqueries•intermediate
Pro Challenge
#57

Products More Expensive Than Their Category Average

Correlated Subqueries•advanced
Pro Challenge
#58

Customers with Verified Completed Orders Using EXISTS

Correlated Subqueries•intermediate
#59

Identify Employees Earning Max Salary in Department

Correlated Subqueries•advanced
Pro Challenge
#60

Students Taking Multiple Courses Using Correlated Subquery

Correlated Subqueries•advanced
Pro Challenge
#61

Customer Spending Aggregation with CTE

Common Table Expressions•intermediate
#62

Department Budget Utilization CTE

Common Table Expressions•intermediate
#63

High Enrollment Courses CTE

Common Table Expressions•intermediate
Pro Challenge
#64

Multiple Chained CTEs for Order Item Breakdown

Common Table Expressions•advanced
Pro Challenge
#65

Generate Integer Sequence 1 to 5

Recursive CTEs•intermediate
#66

Hierarchical Employee Management Chain

Recursive CTEs•advanced
Pro Challenge
#67

Traverse Category Taxonomy Tree

Recursive CTEs•advanced
Pro Challenge
#68

Sum of First 10 Integers Recursive Calculation

Recursive CTEs•advanced
Pro Challenge
#69

Running Cumulative Revenue Over Time

Window Functions•advanced
#70

Department Salary Share Calculation

Window Functions•advanced
Pro Challenge
#71

Previous Transaction Delta Using LAG()

Window Functions•advanced
Pro Challenge
#72

Lead Transaction Tracking with LEAD()

Window Functions•advanced
Pro Challenge
#73

Rank Products by Price using ROW_NUMBER()

Ranking Functions•advanced
#74

Rank Products with Ties using DENSE_RANK()

Ranking Functions•advanced
Pro Challenge
#75

Top Earner Per Department Using Window Filter

Ranking Functions•advanced
Pro Challenge
#76

Student GPA Ranking using RANK()

Ranking Functions•advanced
Pro Challenge
#77

Extract Order Year and Month

Date and Time Queries•intermediate
#78

Monthly Sales Revenue Breakdown

Date and Time Queries•intermediate
#79

Filter Accounts Opened in 2021

Date and Time Queries•easy
#80

Calculate Employee Tenure Years

Date and Time Queries•intermediate
Pro Challenge
#81

Uppercase Employee Names & Job Codes

String Functions•easy
#82

String Concatenation for Course Codes and Titles

String Functions•easy
#83

Email Domain Extraction

String Functions•intermediate
Pro Challenge
#84

Character Length Filter

String Functions•easy
#85

Customer Spend Tier Categorization

CASE Statements•intermediate
#86

Salary Compensation Band Classification

CASE Statements•intermediate
#87

Conditional Order Status Flags

CASE Statements•easy
#88

Pivot Aggregation with Conditional CASE

CASE Statements•advanced
Pro Challenge
#89

Combine Customer and Staff Full Directory

UNION and UNION ALL•intermediate
#90

Deduplicated Combined Locations with UNION

UNION and UNION ALL•intermediate
#91

High Value Orders and High Balances Union

UNION and UNION ALL•intermediate
Pro Challenge
#92

Transaction Credit vs Debit Partitioning

UNION and UNION ALL•intermediate
Pro Challenge
#93

Verify Primary Key Index Scan via EXPLAIN

Indexing Fundamentals•advanced
Pro Challenge
#94

Full Table Scan Identification

Indexing Fundamentals•advanced
Pro Challenge
#95

Create Index and Measure Query Plan

Indexing Fundamentals•advanced
Pro Challenge
#96

Composite Index Strategy

Indexing Fundamentals•advanced
Pro Challenge
#97

Sargable Date Range Search vs Function Call

Query Optimization•advanced
Pro Challenge
#98

Replace Non-Sargable Arithmetic on Columns

Query Optimization•advanced
Pro Challenge
#99

Eliminate Redundant Subquery using JOIN

Query Optimization•advanced
Pro Challenge
#100

Optimizing Anti-Joins: NOT EXISTS over NOT IN

Query Optimization•advanced
Pro Challenge
#101

Customer Retention Cohort Analysis

Advanced SQL Problems•expert
Pro Challenge
#102

Rolling 3-Product Moving Average Price

Advanced SQL Problems•expert
Pro Challenge
#103

Second Highest Salary without Subqueries or LIMIT

Advanced SQL Problems•expert
Pro Challenge
#104

High Frequency Account Debit Velocity Detection

Advanced SQL Problems•expert
Pro Challenge
#105

Comprehensive Multi-Metric Business Scorecard

Advanced SQL Problems•expert
Pro Challenge

Realistic e-commerce database with users, categories, products, orders, order items, and reviews.

users
6 cols

Registered customer profiles and account creation metadata

id
INTEGER
name
TEXT
email
TEXT
country
TEXT
loyalty_tier
TEXT
created_at
DATE
categories
3 cols
products
6 cols
orders
5 cols
order_items
5 cols
reviews
6 cols
sql_bas_001SQL Basics
beginner

Select All Product Catalog Details

Retrieve all columns and all rows from the products catalog.

Relevant Tables:
Interactive SQL Editor
1
Dialect: SQLite (ANSI)•Characters: 7Use Tab for 2 spaces
Queries execute inside an isolated in-memory SQLite WebAssembly environment.

No query executed yet.

Write an SQL query above and press Run Query (Ctrl+Enter) to view results.

Comprehensive Developer Guide

Master Relational Database Engineering with Hands-On Practice

Writing queries is the only way to build relational intuition. Priygop combines production datasets, structured learning paths, and instant execution feedback.

Relational JOINs & Aggregations

Learn when to choose INNER, LEFT, and FULL joins. Master GROUP BY grouping sets, HAVING threshold filters, and anti-join patterns using NOT EXISTS.

Window Functions & CTEs

Solve complex business intelligence queries with ROW_NUMBER, DENSE_RANK, LAG, and LEAD. Traverse organizational hierarchies with Recursive CTEs.

Query Performance & Indexing

Inspect EXPLAIN execution plans. Identify non-sargable functions causing sequential table scans and formulate covering B-Tree index strategies.

Connected Learning Curriculum

Take the Full 12-Module SQL Course

Deepen your theory: ACID transactions, normalization, database design, and ORM optimization.

Frequently Asked Questions (FAQ)

How does Priygop execute real SQL queries safely?

Priygop compiles the official SQLite 3 C engine to WebAssembly (`sql.js`), loading it directly in an isolated memory buffer. It operates 100% inside your browser session with zero access to filesystem or production credentials, providing sub-millisecond query execution.

Can I write my own CREATE TABLE or INSERT queries?

Yes! You have full database owner privileges over your session database. You can create tables, insert rows, alter schemas, and index columns. If you ever want to return to the original data, simply click the "Reset Data" button in the Schema Explorer.

How do the Timed Interview Simulations work?

Timed Interview Mode presents you with realistic technical screening question packs (Fresher, Junior, Mid, Senior, Data Analyst, Backend, DBA). You write and submit queries against strict time limits, receiving a comprehensive scorecard with topic strength and weakness analysis upon completion.