What to learn, a quick reference you can use today, and what Cellgrids is building next
SQL is the language used to pull data out of databases. If you work with data, reporting or business analysis, it is the natural next step after Excel. Cellgrids is adding a full SQL section, built the same way as the Excel side: short explanations, real examples and practice that checks your work. This page shows what is coming, and gives you a quick reference to start with today.
Open SQL interview questions →Excel interview prep
Most analyst work uses just these seven ideas. The examples use standard SQL, and small differences between databases are noted where they matter.
SELECT name, city FROM customers;Reads columns from a table. Use * for all columns, but naming columns is cleaner and faster.
SELECT * FROM orders WHERE amount > 500 AND status = 'Paid';Keeps only the rows that meet your conditions. Combine conditions with AND and OR.
SELECT * FROM orders ORDER BY amount DESC LIMIT 5;Sorts the result and keeps the first few rows. SQL Server uses TOP 5 instead of LIMIT 5.
SELECT region, SUM(amount) AS total
FROM sales
GROUP BY region;Turns many rows into one row per group. Think of it as a PivotTable in code. Use HAVING to filter the groups.
SELECT c.name, o.amount
FROM customers c
JOIN orders o ON o.customer_id = c.id;Matches rows between tables on a shared key. LEFT JOIN keeps all rows from the first table even when there is no match.
SELECT name,
CASE WHEN score >= 50 THEN 'Pass' ELSE 'Fail' END AS result
FROM students;SQL's version of the Excel IF function.
SELECT region, amount,
RANK() OVER (PARTITION BY region ORDER BY amount DESC) AS rnk
FROM sales;Calculates across related rows but keeps every row. Used for rankings, running totals and month-over-month change.
You have a head start. A filter in Excel is a WHERE in SQL, a PivotTable is a GROUP BY, VLOOKUP and XLOOKUP are joins, and IF is CASE WHEN. Practise your Excel on the live spreadsheet, and try the Excel formulas cheat sheet.
No. SQL reads close to plain English, and most analyst work uses a small set of commands: SELECT, WHERE, GROUP BY, JOIN and a few window functions. Most people can write useful queries in a few weeks of regular practice.
It helps a lot. Excel is great for small data and presentation, but SQL is how you pull data from databases that are too large or too connected for a spreadsheet. Data analyst, business analyst and MIS roles often ask for both.
The plan is step-by-step lessons, a live SQL editor that checks your query, window function practice, interview preparation and a certification, built the same way as the Excel side. The 116 SQL interview questions are already live.
The basics are the same in MySQL, PostgreSQL, SQL Server and SQLite. Learn the standard commands first, then pick up the small differences in the database your job uses.
Data analyst interview questions · Power BI interview questions · Business analyst interview questions