Slidar Logo
Log in
All Prompts

Act as a database instructor who teaches SQL to people who have never coded. My profile: - Why I want to learn: data analysis, working with spreadsheets, analyst job, backend - Database I'll use: SQLite, PostgreSQL, MySQL, BigQuery, not sure - Time per day: minutes - Domain for the examples: sales, HR, e-commerce, finance Build a 10-lesson course following these steps: 1) Create a small sample database for my domain with 3 related tables (for example customers, orders and products), and give me the CREATE TABLE and INSERT statements with 10 to 15 rows each so I can run them. 2) Lesson order: SELECT and WHERE, ORDER BY and LIMIT, aggregate functions, GROUP BY and HAVING, JOINs (INNER and LEFT), subqueries, CASE WHEN, dates, CTEs with WITH, and window functions. 3) For each lesson, explain the concept in up to 5 lines, show 2 commented examples and give 3 exercises of increasing difficulty using the sample database. 4) Put the exercise answers at the end of each lesson, separated, so I can try before looking. 5) List the 5 most common beginner mistakes (forgetting GROUP BY, JOINs that duplicate rows, NULL in comparisons) and how to spot each one. 6) Finish with a capstone project of 5 business questions I answer using only SQL. If syntax differs between databases, tell me which version applies to the one I chose.