8" :class="scrolled && 'is-scrolled'">
NOA
Labs
Tutorials
Courses
Skill Forge
Explore
Labs
Hands-on live sessions
Mentors
Meet the senior engineers
Projects
Real portfolio-ready builds
Talent Directory
Public student profiles
Mock Interview
Practice with real feedback
ATS Resume Checker
Free instant resume scoring
Search docs
Ctrl K
Login
Join Free
Artificial Intelligence
LangChain
LLMs
Machine Learning
Prompt Engineering
RAG (Retrieval-Augmented Generation)
AJAX
GraphQL
Apache Kafka
Microservices
Node.js
RabbitMQ
REST API
WebSockets
Algorithms
Data Structures
Angular
Bootstrap
CSS
HTML
jQuery
Next.js
Nuxt.js
React
Svelte
Tailwind CSS
Vue.js
ASP.NET Core
Django
.NET
Entity Framework Core
FastAPI
Flask
Gin
gRPC
Hibernate
Laravel
NestJS
Spring
Spring Boot
Spring Cloud
Spring Data JPA
Spring MVC
Spring Security
AWS
Azure
CI/CD
Docker
Git
Kubernetes
Linux
Nginx
Terraform
C
C++
C#
Dart
Go
Java
JavaScript
Kotlin
PHP
Python
Ruby
Rust
Swift
TypeScript
Database Design
MongoDB
MySQL
Oracle Database
PostgreSQL
Redis
SQL
System Design
↑↓ navigate
↵ open
esc close
Tutorials
/
SQL
SQL menu
SQL Tutorial
Querying relational databases — SELECT, JOIN, aggregation and subqueries.
Start the SQL tutorial →
What you'll learn
1. SQL Introduction
What SQL is, the relational model, and the users/orders/products schema used throughout this section.
2. SELECT and Filtering
SELECT, WHERE, comparison and logical operators, LIKE, IN, BETWEEN, ORDER BY, and LIMIT.
3. SQL Joins
INNER, LEFT, RIGHT, and FULL joins explained with examples, plus self-joins.
4. Aggregation and Grouping
COUNT, SUM, AVG, MIN, MAX, GROUP BY, and the difference between WHERE and HAVING.
5. Subqueries and CTEs
Subqueries in WHERE and FROM, correlated subqueries, common table expressions, and recursive CTEs.
6. Window Functions in Depth
ROW_NUMBER, RANK, DENSE_RANK, LAG/LEAD with PARTITION BY, running totals, and top-N-per-group.
7. Query Performance and Tricky Queries
Reading a query plan conceptually, plus classic puzzles: gaps in a sequence, second-highest value, and hierarchical self-joins.
8. SQL Interview Questions
Real SQL interview questions and answers covering joins, subqueries, NULL handling, and more.