Skip to content
1 min read

SQL: library loans homework: student prompt

Data Analysis, Excel & SQL ยท Student sample

Database student practising joins and GROUP BY on a library schema for weekly homework.

SQL: library loans homework

Database student practising joins and GROUP BY on a library schema for weekly homework.

Prompt ยท 1,706 chars
ROLE: You are a patient data analysis tutor who teaches SQL (SQLite) by solving real tasks step by step.
GOAL: Help me answer which book genres are borrowed most, and which members currently have overdue books with SQL (SQLite) and understand every step so I can do it myself.
CONTEXT: Course or project: Intro to Databases, week 6 homework. My level: I know SELECT and WHERE; joins and GROUP BY confuse me.
AUDIENCE: Me, a learner: explain each formula or query in one plain sentence.
INPUTS: My data: tables members(member_id, name, joined_on), books(book_id, title, genre), loans(loan_id, book_id, member_id, loaned_on, due_on, returned_on, null if not returned). Use only these columns; never invent values or results; write [run to check] where results depend on my data.
STEPS: 1. Restate the question as a measurable analysis. 2. Check and clean the data (blanks, duplicates, types). 3. Formulas or queries in order, each with a one-line explanation. 4. Expected output shape with a tiny example. 5. What the result would mean, and its limits. 6. Two practice variations.
CONSTRAINTS: Only built-in features of SQL (SQLite); no add-ins; correlation is not causation; explain so I learn, not just copy.
TONE: Encouraging, precise; define any jargon.
OUTPUT FORMAT: Document: question, data checks table, numbered steps with code or formula blocks, sample output table, interpretation, common errors, practice tasks.
EXAMPLE: =AVERAGEIFS(D:D, B:B, ">=8") averages midterm scores for 8+ hours of sleep.
SELF-CHECK: Check: my real column names used; syntax valid for SQL (SQLite); no invented results; limits stated.
FOLLOW-UP: Offer to check my results when I paste them and ask which step was hardest.
Make it yours
  • Paste your exact CREATE TABLE statements if column names differ.
  • Tell it your SQL dialect; date functions differ between SQLite, MySQL and PostgreSQL.
  • Ask for one query at a time if you want to try each step yourself first.
Follow-up prompts (2)

Paste follow-ups into the same ChatterMate.Ai conversation so the first result stays in context.

Sample output
SQL walkthrough: join diagram, GROUP BY by genre, overdue query with dates, sample output, common errors and practice.
SQL walkthrough: join diagram, GROUP BY by genre, overdue query with dates, sample output, common errors and practice. Example output; yours will differ.
Open .html .md

โœจ More prompts like this

๐Ÿงฎ Data Analysis, Excel & SQL๐ŸŽ“ Student

Excel: sleep vs midterm scores

Psychology student analysing a class survey to see whether sleep relates to exam results.

๐ŸŽ“ Education & EdTech
View
๐Ÿงฎ Data Analysis, Excel & SQL๐Ÿ’ผ Professional

PostgreSQL: 90-day churn by cohort and channel

Analytics engineer at an online retailer building a churn cohort analysis for the growth team.

๐Ÿ›’ Retail & E-commerce๐Ÿ’ป Tech, SaaS & Software
View
๐Ÿงฎ Data Analysis, Excel & SQL๐Ÿ’ผ Professional

Excel: Q3 budget variance for the CFO

Finance analyst building a refreshable variance workbook that separates timing from permanent variances.

๐Ÿ’ฐ Finance & Fintech
View
๐Ÿ“„ Resume Builder๐ŸŽ“ Student

CS student to SWE intern

A third-year computer science student turns a TA job, a hackathon win and a class project into a one-page internship resume.

๐Ÿ’ฐ Finance & Fintech๐Ÿ’ป Tech, SaaS & Software
View
๐Ÿ“„ Resume Builder๐ŸŽ“ Student

Nursing student to clinical placement

A BSN student with clinical rotations and a caregiving job builds a one-page resume for a competitive med-surg placement.

๐Ÿฅ Healthcare & Life Sciences๐ŸŽ“ Education & EdTech
View
โœ‰๏ธ Cover Letter & LinkedIn Profile๐ŸŽ“ Student

Marketing internship at a sustainable brand

A second-year marketing student turns campus social-media results into a specific internship letter and a matching LinkedIn profile.

๐Ÿ›’ Retail & E-commerce๐Ÿ“ฃ Marketing & Advertising
View

Build it for real in ChatterMate.Ai

Chat, Canvas apps and dashboards, Writer documents, slides and images in one workspace. Start free; no setup.

Start free

Learn it with TutorMigo.ai

A patient AI tutor for students: practise, get feedback and prepare for exams, the honest way.

Try TutorMigo.ai