Foundations › SQL › SQL for Excel users
SQL for Excel usersSQL for Excel Users
What you know in Excel and its SQL counterpart, with a working example.
Fetch the customer name for each order
A join returns every match and works on millions of rows. Open in SQL Lab
Total sales for one category
The condition goes in WHERE and the sum in SUM. Open in SQL Lab
Cairo customers who joined in 2026
Many conditions with AND. Open in SQL Lab
Number of products per category
GROUP BY is the pivot table. Open in SQL Lab
The different cities
DISTINCT removes duplicates. Open in SQL Lab
Classify products by price
CASE replaces nested IFs. Open in SQL Lab
Join product names per category
It is GROUP_CONCAT in SQLite and STRING_AGG in PostgreSQL. Open in SQL Lab
Replace missing emails
COALESCE returns the first non-empty value. Open in SQL Lab
Want an expert to do it for you?
Gomaa Intelligence turns your data into clear reports and decisions. Tell us your problem and we will reply.