AITeky Learn

AiTeky Original Interactive Learning & Practice Beginner

SQL: ask a database questions

Pick, filter, sort, total, group and join the tables of a real grocery app with SQL, the language every data job asks for.

A company's data does not live in CSV files on someone's laptop. It lives in a database: orders, customers, payments and stock, in tables that thousands of people and apps use at once. SQL is how you ask that database a question, such as "how many orders did Hyderabad place last month?", and get the answer in seconds.

SQL is the most asked-for skill in data analyst job posts, and it is used by developers, product managers, finance and operations teams too. It reads almost like English, so it is a good first "programming" language even if you have never coded. You do not need Python for most of this course; a few lessons connect SQL to pandas at the end.

You will work on the database of a made-up grocery delivery app with customers in four cities: its customers, products, orders and what was in each order, from July to September 2026.

  • Learn lessons explain one idea at a time, with small exercises you can try again and again.
  • Industry ready lessons give you real business questions, and the interview questions that go with them.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 01 20 min Free sample πŸ”’ AiTeky Pass Meet SQL: your first query with SELECT Learn what a database and a table are, then ask your first questions with SELECT, FROM and LIMIT on a real grocery app's data.
  2. 02 25 min πŸ”’ AiTeky Pass Pick the rows you want with WHERE Filter rows with WHERE, compare numbers, text and dates, combine conditions with AND, OR and brackets, and use IN, BETWEEN and LIKE.
  3. 03 25 min πŸ”’ AiTeky Pass Sort, remove repeats and make new columns Sort answers with ORDER BY, find the top few with LIMIT, list unique values with DISTINCT, and work out new columns with maths, ROUND and AS.
  4. 04 30 min πŸ”’ AiTeky Pass Totals and averages with GROUP BY Sum up a whole table with COUNT, SUM, AVG, MIN and MAX, then get one row of totals per group, such as per payment method or per month, with GROUP BY.
  5. 05 30 min πŸ”’ AiTeky Pass HAVING, CASE and NULL: filter groups and label rows Keep only some groups with HAVING, see the order SQL really runs a query in, put rows into your own groups with CASE WHEN, and handle empty values with IS NULL and COALESCE.
  6. 06 35 min πŸ”’ AiTeky Pass Join tables: one answer from many tables Link rows across tables with JOIN ... ON, use short table names, join three tables to work out order values, and find what is missing with LEFT JOIN.
  7. 08 30 min πŸ”’ AiTeky Pass Make and change tables: CREATE, INSERT, UPDATE, DELETE Create a table with the right column types and rules, add rows with INSERT, change them with UPDATE, remove them with DELETE, and learn the habits that stop one missing WHERE from wiping out real data.
  8. 09 35 min πŸ”’ AiTeky Pass Questions inside questions: subqueries, WITH and window functions Use one query's answer inside another, write long queries as readable steps with WITH, and rank rows, find the top one per group and keep running totals with window functions.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 07 40 min πŸ”’ AiTeky Pass On the job: the grocery app's quarterly business review Answer a business head's real questions from the database: monthly orders, revenue and average order value, cancellations by payment method, the best products and a city report, and practise the SQL interview questions that go with them.
  2. 10 40 min πŸ”’ AiTeky Pass On the job: find the customers who are slipping away Measure repeat customers, monthly active customers and month-to-month retention, build a list of regulars who have stopped ordering, hand the numbers to pandas for a chart, and practise the SQL interview questions that come up most.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in