SQL for Data Science Beginners: Learn Queries with Practical Examples
Imagine you want to know which learning resources students use most often. Their records are spread across separate tables: one lists fictional students, another lists subjects, a third describes learning resources, and a fourth records when a resource was accessed. Reading 160 individual usage rows would be slow and error-prone. With a few carefully written SQL statements, you can connect the tables, count resource accesses and compare subjects—then reproduce every answer.
This guide teaches SQL for data science beginners through a single complete, original Global Student Learning Resources Database. You will write your first SELECT, filter and sort rows, calculate aggregates, combine tables with joins, investigate missing values, and progress to subqueries, common table expressions and window functions. Every important numerical result comes from SQLite queries executed against the same downloadable fictional database.
You do not need a paid database account or sensitive real student information. Our project uses only anonymous invented codes, fictional study-level and region labels, course descriptions and simulated access events. The supplied setup script creates exactly the same rows on each run; the Python/Pandas notebook was executed; and the practice workbook includes thirty queries tested against the saved database.
Quick answer: SQL (Structured Query Language) lets you define and query structured relational data. A SELECT retrieves columns; WHERE filters rows; GROUP BY summarizes groups; JOIN combines related tables; and WITH makes complicated analyses easier to organize. In data science, SQL commonly retrieves and prepares data that other tools, including Python and Pandas, can analyze further.

What is SQL, and why does it matter in data science?
SQL stands for Structured Query Language. It is a language designed to work with structured relational data. Some statements read information; others create tables, insert records, update values or change database structures when the user has appropriate permission. Data scientists frequently use SQL to retrieve a focused subset of records, filter unreliable rows, combine information stored in different tables, and compute summaries before building charts or models.
Consider a learning website with thousands of resources. You may want only Biology worksheets accessed during a particular month, not every column in every table. SQL can perform much of that selection close to where the data are stored, returning a result that is easier to inspect. A well-written query is also reproducible: another student with the same database version can run it and check whether they obtain the same rows. This makes SQL valuable for analysis, quality assurance and reporting.
SQL is not one identical implementation everywhere. SQLite, PostgreSQL, MySQL and Microsoft SQL Server share many basic concepts but differ in date functions, supported features, data types and administration. We use SQLite throughout this tutorial. For example, our monthly summary uses strftime('%Y-%m',access_date), which is SQLite syntax; you should not paste it unchanged into another dialect and assume equivalent behavior.
SQL, Python and Pandas: complementary tools
| Tool | Main role | Example in this project |
|---|---|---|
| SQL | Retrieve, join, group and update relational data | Count monthly learning-resource access events |
| Python | General-purpose programming and automation | Open a database and run queries safely |
| Pandas | Python data-analysis tables and transformations | Load a SQL result into a DataFrame for charts |
SQL is not simply an alternative spelling of Python. Python can control many applications and libraries; Pandas provides an in-memory DataFrame interface for analysis; SQL describes questions about relational tables and lets the database engine plan their execution. A project can use SQL for early filtering and grouping, then Pandas for additional transformations or visualization. Neither Pandas nor a Jupyter notebook is required to learn basic SQL: DB Browser for SQLite can execute queries directly.
What is a relational database?
A relational database organizes information into named tables. A row, also called a record, contains values for one instance of a defined entity. A column identifies a field such as resource_title or estimated_minutes. A database table is more structured than an arbitrary worksheet because it can define relationships, uniqueness, required fields, and constraints that protect data consistency.
A primary key uniquely identifies each row; in our database student_id identifies one fictional student. A foreign key refers to the primary or another suitable unique key of a related table; ResourceUsage.student_id refers to Students.student_id. A one-to-many relationship means one student can have many usage records. Storing related entities in separate tables reduces repeated subject names and helps keep records consistent.
The four-table Global Student Learning Resources Database
| Table | Purpose | Rows |
|---|---|---|
| Students | Fictional student codes, study levels, regions and enrollment years | 24 |
| Subjects | Subject names and broad classifications | 8 |
| Resources | Resource titles, types, levels and estimated durations | 31 |
| ResourceUsage | Fictional access dates, durations and completion flags | 160 |

The relationship structure is Students → ResourceUsage ← Resources → Subjects. Each resource belongs to one subject; each usage row refers to one resource and one student. The subjects include Biology, Chemistry, Mathematics, Physics, Computer Science, Geography, Economics and Astronomy. Astronomy deliberately has no resources, and one listed resource has no usage. These are useful cases for learning how LEFT JOIN preserves unmatched records.
The labels STU-001 through STU-024 are inventions, not anonymized real school files. Dates cover January through May 2026, and some fictional usage durations are deliberately missing. No student names, emails, passwords, addresses or sensitive records are present. Treat resulting charts as instructional data, never as evidence of how real students study.
What is SQLite, and how can a beginner set it up?
SQLite is a lightweight embedded relational database engine. A complete database can live inside one local .db file, making it convenient for a classroom exercise. SQLite is free to use and works directly with Python’s standard sqlite3 module. It differs from server-based systems that run a separate database service and manage many network clients, but it supports the SQL features needed for this lesson.
Method 1 — DB Browser for SQLite: Install the application from its official website, open the downloaded student_learning_resources.db, choose the Execute SQL tab, paste a SELECT query and run it. Check the displayed results. Use the separate setup script only if you want to create a fresh database from scratch; executing CREATE TABLE statements again inside an already populated database may report that the tables exist.
Method 2 — Python: Store the database file next to your notebook or script, then connect using sqlite3.connect('student_learning_resources.db'). A connection to a nonexistent filename can create an empty file rather than the expected tables; verify row counts before analyzing. Install Pandas and Matplotlib only if you want DataFrames and plots. Follow the complete reproducibility instructions in the accompanying README.
SQLite data types and constraints
SQLite recognizes storage classes including NULL, INTEGER, REAL, TEXT and BLOB. Their role includes missing values, whole numbers, floating-point numbers, character strings and binary data. Ordinary SQLite tables use type affinity, which is not identical to strongly typed columns in every other database engine. Constraints such as NOT NULL, UNIQUE, CHECK and primary keys communicate intended rules. Our positive estimated resource duration, valid completion flag and unique student code are enforced using such constraints.
Create the four tables with correct relationships
PRAGMA foreign_keys = ON;
CREATE TABLE Students (
student_id INTEGER PRIMARY KEY,
student_code TEXT NOT NULL UNIQUE,
study_level TEXT NOT NULL,
region TEXT NOT NULL,
enrollment_year INTEGER NOT NULL
);
CREATE TABLE Subjects (
subject_id INTEGER PRIMARY KEY,
subject_name TEXT NOT NULL UNIQUE,
subject_category TEXT NOT NULL
);
CREATE TABLE Resources (
resource_id INTEGER PRIMARY KEY,
subject_id INTEGER NOT NULL REFERENCES Subjects(subject_id),
resource_title TEXT NOT NULL,
resource_type TEXT NOT NULL,
difficulty_level TEXT NOT NULL,
estimated_minutes INTEGER CHECK(estimated_minutes > 0)
);
CREATE TABLE ResourceUsage (
usage_id INTEGER PRIMARY KEY,
student_id INTEGER NOT NULL REFERENCES Students(student_id),
resource_id INTEGER NOT NULL REFERENCES Resources(resource_id),
access_date TEXT NOT NULL,
minutes_spent INTEGER CHECK(minutes_spent >= 0),
completed INTEGER NOT NULL CHECK(completed IN (0,1))
);
This abbreviated teaching DDL shows the keys and types; the downloaded setup script includes the additional check constraints, unique resource-title rule and useful indexes present in the actual companion database. In SQLite, foreign-key constraints may need to be enabled explicitly for each connection with PRAGMA foreign_keys=ON. The script enables them and the project checks PRAGMA foreign_key_check, which returned no violations. Turning on enforcement after beginning a transaction may not have the intended effect.
Insert records safely with INSERT INTO
BEGIN;
INSERT INTO Subjects (subject_id, subject_name, subject_category)
VALUES (9, 'Art History', 'Humanities');
ROLLBACK;
This example demonstrates an INSERT inside a transaction and immediately rolls back the illustrative Art History row. We executed the statement and verified the companion database remains at eight subjects. To reproduce the article’s published numbers, run the complete create_student_learning_database.sql against a new empty database. In application code, pass untrusted values as bound parameters instead of concatenating user input into SQL.
Your first SQL query: SELECT and FROM
SELECT subject_name
FROM Subjects
ORDER BY subject_id
LIMIT 8;
The SELECT clause states which field to return, and FROM identifies the table. The ORDER BY here makes the output deterministic, while LIMIT 8 returns at most eight rows. Executing this against the supplied database gives Biology, Chemistry, Mathematics, Physics, Computer Science, Geography, Economics and Astronomy, in subject-ID order. The extra clauses are helpful for reproducible presentation; the simplest SELECT subject_name FROM Subjects; is also valid, but without ordering the row sequence is not guaranteed.
Selecting several columns, SELECT * and aliases
SELECT resource_title, resource_type, estimated_minutes
FROM Resources
ORDER BY resource_id
LIMIT 4;
| resource_title | resource_type | estimated_minutes |
|---|---|---|
| Cells and Microscopes | Worksheet | 30 |
| Photosynthesis Practice | Quiz | 45 |
| Genetics Revision | Video | 60 |
| Ecosystems Quiz | Lesson | 25 |
The displayed four rows are actual output from the corresponding query. You may use SELECT * FROM Resources ORDER BY resource_id LIMIT 2; to inspect every column during exploration, but explicit columns make reports easier to read and reduce unnecessary data retrieval. AS can give an output expression a temporary readable name—for example, COUNT(*) AS total_accesses—without changing the permanent table schema.
DISTINCT removes repeated result combinations
SELECT DISTINCT resource_type
FROM Resources
ORDER BY resource_type;
The exact results are Lesson, Quiz, Video and Worksheet. DISTINCT removes duplicate selected rows, not duplicate source records. If two columns are selected, it examines combinations of their values. When NULLs occur, SQLite’s distinctness rules treat NULLs consistently for deduplication; use a deliberate NULL-handling strategy rather than assuming missing always means zero.
Filtering data with WHERE and comparison operators
SELECT resource_title, estimated_minutes
FROM Resources
WHERE estimated_minutes >= 50
ORDER BY estimated_minutes DESC, resource_title
LIMIT 5;
The verified first five rows are Functions Practice (60), Genetics Revision (60), Programming Logic (60), Electric Circuits (55), and Elements and Compounds (55). The symbols =, != or <>, >, <, >= and <= test equality and numeric comparisons. A WHERE condition keeps only rows that meet its rule before the resulting set is ordered.
Combining filters: AND, OR, NOT, BETWEEN, IN and LIKE
SELECT resource_title, difficulty_level
FROM Resources
WHERE difficulty_level = 'Beginner'
AND (resource_type = 'Lesson' OR resource_type = 'Quiz')
ORDER BY resource_title;
This returned four rows: Functions Practice, Introduction to Algorithms, Waves and Sound, and World Map Skills—all marked Beginner in our fictional database. Parentheses make the intended combination clear. SQL’s logical precedence means AND ordinarily binds more tightly than OR; using parentheses prevents readers and future editors from misunderstanding a rule. NOT reverses a condition, although NULL logic requires special attention.
SELECT resource_title, estimated_minutes
FROM Resources
WHERE estimated_minutes BETWEEN 30 AND 50
AND resource_type IN ('Lesson','Quiz')
AND resource_title LIKE '%a%'
ORDER BY resource_title
LIMIT 5;
BETWEEN includes both endpoints; IN matches one of several listed values; and LIKE '%a%' matches a text pattern containing the letter sequence. The five verified rows are Atomic Structure Quiz (35), Cyber Safety (45), Market Structures (30), Motion and Forces (40) and Personal Budgeting (50). In SQLite, the common default case behavior of LIKE for ASCII letters differs from some other collations and systems; do not assume universal Unicode matching rules.

ORDER BY and LIMIT: making results reproducible
ORDER BY estimated_minutes DESC, resource_title ASC sorts longest durations first, then uses titles to break ties. ASC is ascending and DESC descending. LIMIT 5 then chooses the first five sorted results. Without an ORDER BY, LIMIT does not reliably mean top five. You should also decide how NULL values and equal scores should be handled when ranking records.
Missing data: NULL, IS NULL and COALESCE
SELECT COUNT(*) AS unknown_minutes
FROM ResourceUsage
WHERE minutes_spent IS NULL;
This executed query returned 9. NULL marks missing or unknown information; it is not the number zero and usually must not be compared using = NULL. Use IS NULL or IS NOT NULL. COALESCE(minutes_spent,0) can display a substitute zero, but replacing missing times with zero during analysis may distort an average unless the replacement has a justified interpretation.
SQLite’s AVG(minutes_spent) ignores NULL inputs, and COUNT(minutes_spent) counts only non-NULL values. Our data contain 160 usage events but only 151 measured durations. Interpreting the resulting average as “minutes per all sessions” would be imprecise; it is an average among sessions with recorded durations. Document missingness instead of treating unavailable measurements as observations with zero elapsed time.
Aggregate functions: COUNT, SUM, AVG, MIN and MAX
SELECT COUNT(*) AS total_accesses,
COUNT(minutes_spent) AS measured,
ROUND(AVG(minutes_spent),1) AS average_minutes,
SUM(completed) AS completions
FROM ResourceUsage;
| total_accesses | measured | average_minutes | completions |
|---|---|---|---|
| 160 | 151 | 52.6 | 104 |
An aggregate summarizes several input rows. COUNT(*) counts rows; COUNT(column) counts non-NULL values in that column; SUM adds values; AVG calculates their mean; and MIN and MAX find extreme values. Our completed column contains only 0 and 1, so summing it counts recorded completed events. This is a data-definition choice: if completion were text instead, a different expression would be needed.
GROUP BY: one summary per subject or resource
SELECT r.resource_title,
COUNT(u.usage_id) AS total_accesses
FROM Resources r
JOIN ResourceUsage u ON u.resource_id=r.resource_id
GROUP BY r.resource_id
ORDER BY total_accesses DESC, r.resource_title
LIMIT 5;
The first five actual results are Functions Practice (10), Introduction to Algorithms (10), Data Tables and SQL (8), Genetics Revision (8), and Motion and Forces (8). Grouping by resource_id means that each row summarizes one resource’s usage events. A count of ten events is not evidence that ten distinct students visited; one student could return repeatedly. When the question concerns unique students, use COUNT(DISTINCT u.student_id).

WHERE versus HAVING: two different filtering stages
WHERE filters input records before grouping; HAVING filters the groups after aggregates have been computed. For example, a WHERE condition can limit events to completed sessions before counting, while a HAVING condition can keep only resources or students with at least a certain number of accesses. A common mistake is writing WHERE COUNT(*) > 3 in a grouped query; that condition belongs in HAVING.
SELECT student_id,
COUNT(DISTINCT resource_id) AS distinct_resources
FROM ResourceUsage
GROUP BY student_id
HAVING COUNT(DISTINCT resource_id) >= 5
ORDER BY distinct_resources DESC, student_id
LIMIT 6;
The six verified leading results have student IDs 4 (11 distinct resources), 24 (9), 6 (8), 17 (8), 2 (7) and 9 (7). The alias distinct_resources makes the output easier to interpret; it does not rename any database column. The HAVING condition operates on each student’s group, not on individual resource-usage rows.
INNER JOIN combines matching rows across tables
SELECT r.resource_title, s.subject_name
FROM Resources AS r
INNER JOIN Subjects AS s
ON r.subject_id = s.subject_id
ORDER BY r.resource_id
LIMIT 5;
The first five matching rows are all Biology resources: Cells and Microscopes, Photosynthesis Practice, Genetics Revision, Ecosystems Quiz and Human Body Notes. The join condition connects the resource’s foreign key to the subject’s identifier. An INNER JOIN returns only matched combinations; rows without a match on either side are excluded. Here referential constraints ensure every existing resource points to a valid subject.
LEFT JOIN retains unmatched records
SELECT s.subject_name,
COUNT(r.resource_id) AS resource_count
FROM Subjects AS s
LEFT JOIN Resources AS r
ON r.subject_id = s.subject_id
GROUP BY s.subject_id, s.subject_name
ORDER BY s.subject_name;
This returns all eight subjects, including Astronomy with resource_count = 0. The left subject remains even without any matching resource; missing right-side fields are NULL. Counting r.resource_id returns zero for the unmatched subject, whereas COUNT(*) would count the preserved placeholder row as one. A WHERE condition on r.resource_type can accidentally discard unmatched rows; if preservation is required, consider carefully whether that condition belongs in the JOIN’s ON clause.

Join multiplicity and COUNT(DISTINCT)
SELECT COUNT(*) AS usage_events,
COUNT(DISTINCT student_id) AS distinct_students,
COUNT(DISTINCT resource_id) AS used_resources
FROM ResourceUsage;
The exact output is 160 usage events, 24 distinct students and 30 distinct used resources. A one-to-many JOIN can multiply the rows representing an entity; this is not necessarily a mistake, but the analyst must know the unit being counted. For a resource-level analysis, group by resource ID; for a distinct-student question, count distinct student IDs. Avoid removing duplicated-looking events when they represent legitimate repeated access records.
Subqueries: ask one question inside another
A subquery is a SELECT statement used within another statement. Our objective is to find learning resources with an estimated duration longer than the average duration of all listed resources. First calculate the mean in the inner SELECT; then compare each resource’s own duration with that result. This is more maintainable than hard-coding a manually computed average that will become outdated after the records change.
SELECT resource_title, estimated_minutes
FROM Resources
WHERE estimated_minutes >
(SELECT AVG(estimated_minutes) FROM Resources)
ORDER BY estimated_minutes DESC, resource_title
LIMIT 5;
The exact leading output is Functions Practice (60), Genetics Revision (60), Programming Logic (60), Electric Circuits (55), and Elements and Compounds (55). The inner query computes one aggregate value. Other subqueries can return multiple rows when used with suitable operators, but you must match the comparison operator with the expected shape of its output.
Common table expressions make complex SQL readable
A common table expression, or CTE, is introduced by WITH. It gives a name to a query result that a following statement can reference. This is especially helpful when one stage summarizes rows and a second stage ranks or filters those summaries. A CTE is a query construct; it is not necessarily a saved permanent table or a promise that the database will materialize its contents.
WITH subject_access AS (
SELECT s.subject_name,
COUNT(u.usage_id) AS events
FROM Subjects s
LEFT JOIN Resources r ON r.subject_id=s.subject_id
LEFT JOIN ResourceUsage u ON u.resource_id=r.resource_id
GROUP BY s.subject_id
)
SELECT * FROM subject_access
ORDER BY events DESC, subject_name
LIMIT 5;
The first five verified subject access counts are Mathematics (32), Computer Science (31), Biology (25), Physics (25) and Geography (20). Because the joins preserve subjects before grouping, the CTE can also include a subject with no resources or usage. The events figure counts access rows; no causal claim about interest, ability or educational quality follows from that alone.
Window functions: rank within a subject
Window functions calculate values over a related set of result rows without necessarily collapsing those rows into one output. ROW_NUMBER() OVER (PARTITION BY subject_name ORDER BY uses DESC, resource_title) restarts its sequence for each subject and numbers resources by usage count. The PARTITION BY establishes the groups, and the ORDER BY inside the window determines ranking order. Our SQLite 3.46.1 runtime supports the syntax.
WITH counts AS (
SELECT s.subject_name,r.resource_title,
COUNT(u.usage_id) AS uses
FROM Resources r JOIN Subjects s ON s.subject_id=r.subject_id
LEFT JOIN ResourceUsage u ON u.resource_id=r.resource_id
GROUP BY r.resource_id
)
SELECT subject_name,resource_title,uses,
ROW_NUMBER() OVER (
PARTITION BY subject_name
ORDER BY uses DESC,resource_title
) AS rank_in_subject
FROM counts
ORDER BY subject_name,rank_in_subject
LIMIT 8;
The first Biology results are Genetics Revision (8 visits, rank 1), Photosynthesis Practice (6, rank 2), Cells and Microscopes (5, rank 3), Ecosystems Quiz (3, rank 4) and Human Body Notes (3, rank 5). A deterministic tie-breaker such as title is important: otherwise tied ranks may appear in an arbitrary sequence. RANK() handles ties differently and may skip numbers; the choice depends on your research question.
Analyzing dates with SQLite
SELECT strftime('%Y-%m',access_date) AS month,
COUNT(*) AS events
FROM ResourceUsage
GROUP BY month
ORDER BY month;
With dates stored as ISO-style YYYY-MM-DD text, this SQLite query returns January 2026 (33 events), February (36), March (27), April (32) and May (32). Each output is a month-level summary, not a list of unique students. Other databases may use different date expressions; for example, do not silently mix PostgreSQL DATE_TRUNC with this SQLite function.
Data-quality checks before drawing conclusions
SELECT
(SELECT COUNT(*) FROM ResourceUsage
WHERE minutes_spent IS NULL) AS missing_minutes,
(SELECT COUNT(*) FROM ResourceUsage
WHERE minutes_spent < 0) AS invalid_minutes,
(SELECT COUNT(*) FROM (
SELECT student_code FROM Students
GROUP BY student_code HAVING COUNT(*) > 1
)) AS duplicate_codes;
The verified output is 9 missing durations, 0 negative durations and 0 duplicate student codes. The zero negative durations also follows from the schema’s check constraint, but documenting the query is useful for independent verification. Running PRAGMA foreign_key_check; found no broken references. A missing time should not automatically be deleted or imputed to zero: the best treatment depends on why it is missing and whether it distorts the intended analysis.
Use SQL safely: avoid injection and unintended edits
import sqlite3
with sqlite3.connect("student_learning_resources.db") as connection:
connection.execute("PRAGMA foreign_keys=ON")
difficulty = "Beginner"
rows = connection.execute(
"SELECT resource_title FROM Resources "
"WHERE difficulty_level = ? ORDER BY resource_title LIMIT 5",
(difficulty,)
).fetchall()
print(rows)
The placeholders make an untrusted value a bound parameter rather than executable SQL syntax. Do not build a query by concatenating user-entered text into SQL strings. Placeholders generally bind values, not arbitrary table names or column identifiers; validate identifiers against a strict known list if a program genuinely needs dynamic names. Use read-only SELECT statements when learning, make backups before edits, and restrict database credentials to the privileges required for a task.
Logical query processing and readability

A useful conceptual order for a grouped SELECT is FROM/JOIN → WHERE → GROUP BY → HAVING → SELECT → ORDER BY → LIMIT. This helps explain why WHERE cannot filter groups by a COUNT that has not yet been calculated, while HAVING can. SQLite has its own documented handling of output aliases and expressions; actual database engines may optimize and reorder physical operations while preserving query meaning. Learn the semantics before trying to predict execution speed.
Performance basics and other SQL systems
Choose only needed columns, filter intentionally, use clear aliases and do not add joins that do not serve the question. Indexes can accelerate some lookups but add storage and update costs; their usefulness depends on the data and query plan. SQLite offers EXPLAIN QUERY PLAN to inspect broad access strategies, but a changed plan alone is not evidence of superior real-world performance. On this tiny lesson database, correct interpretation matters more than micro-optimizing milliseconds.
SQLite stores data in a local database file and is especially convenient for this lesson. PostgreSQL, MySQL and SQL Server typically operate as server-oriented database systems with different security, deployment and dialect features. Their broad SELECT, WHERE, JOIN and GROUP BY concepts transfer, while date functions, some types and advanced syntax vary. Students should read the official documentation of the engine they use instead of assuming one vendor’s syntax applies everywhere.
Combine SQL with Python, Pandas and a verified chart
import sqlite3
import pandas as pd
import matplotlib.pyplot as plt
with sqlite3.connect("student_learning_resources.db") as connection:
frame = pd.read_sql_query(
"""SELECT s.subject_name,
COUNT(u.usage_id) AS access_events
FROM Subjects s
LEFT JOIN Resources r ON r.subject_id=s.subject_id
LEFT JOIN ResourceUsage u ON u.resource_id=r.resource_id
GROUP BY s.subject_id,s.subject_name
ORDER BY access_events DESC,s.subject_name""",
connection)
print(frame.head())
frame.plot.bar(x="subject_name", y="access_events", legend=False)
plt.tight_layout()
plt.show()
The notebook ran this query through Python’s sqlite3 connection, loaded the exact result into a Pandas DataFrame and produced the original chart below. The event counts sum to 160; Astronomy remains present with zero accesses. Using a context manager provides transaction handling, but for a robust application you should also close the connection explicitly or use a managed resource pattern. SQL performs relational retrieval and counting, while Pandas makes the result convenient for plotting.


Capstone project: analyze resource use through ten verified SQL questions
The next ten analyses run against the exact same original database. Each query was executed with SQLite 3.46.1, and every displayed number was checked against a second database recreated from the standalone setup script. Output tables occasionally show the leading rows for readability; the downloadable verified_sql_results.json contains every returned row, including all 23 qualifying student codes in one question. Try each modification challenge without altering the original data.
Capstone 1: How many fictional students exist?
SELECT COUNT(*) AS student_count FROM Students;
Executed result: 1 row returned.
| student_count |
|---|
| 24 |
Interpretation: The answer is 24 distinct fictional student records because the Students table has exactly 24 keyed rows. This is not a count of usage sessions or unique database connections. Try it: Count students by study_level and interpret the two categories.
Capstone 2: How many resources belong to each subject?
SELECT s.subject_name, COUNT(r.resource_id) AS resource_count FROM Subjects AS s LEFT JOIN Resources AS r ON s.subject_id=r.subject_id GROUP BY s.subject_id,s.subject_name ORDER BY resource_count DESC,s.subject_name;
Executed result: 8 rows returned.
| subject_name | resource_count |
|---|---|
| Biology | 5 |
| Computer Science | 5 |
| Mathematics | 5 |
| Chemistry | 4 |
| Economics | 4 |
| Geography | 4 |
| Physics | 4 |
| Astronomy | 0 |
Interpretation: There are eight rows. Biology, Computer Science and Mathematics each have five listed resources; Astronomy has zero. Counting the nullable resource ID instead of COUNT(*) prevents an unmatched LEFT JOIN row from being mistaken for a real resource. Try it: Sort the result alphabetically instead of by resource count.
Capstone 3: Which resources were accessed most frequently?
SELECT r.resource_title, COUNT(u.usage_id) AS accesses FROM Resources AS r JOIN ResourceUsage AS u ON u.resource_id=r.resource_id GROUP BY r.resource_id,r.resource_title ORDER BY accesses DESC,r.resource_title LIMIT 5;
Executed result: 5 rows returned.
| resource_title | accesses |
|---|---|
| Functions Practice | 10 |
| Introduction to Algorithms | 10 |
| Data Tables and SQL | 8 |
| Genetics Revision | 8 |
| Motion and Forces | 8 |
Interpretation: Two resources have ten recorded usage events each, and three have eight. These are simulated visits, not unique learners, and ties are ordered by title. A frequent click does not establish better educational value. Try it: Replace COUNT(u.usage_id) with COUNT(DISTINCT u.student_id) and compare rankings.
Capstone 4: What is average measured study duration by subject?
SELECT s.subject_name, ROUND(AVG(u.minutes_spent),1) AS average_minutes, COUNT(u.minutes_spent) AS measured_sessions FROM Subjects s LEFT JOIN Resources r ON r.subject_id=s.subject_id LEFT JOIN ResourceUsage u ON u.resource_id=r.resource_id GROUP BY s.subject_id,s.subject_name ORDER BY average_minutes DESC,s.subject_name;
Executed result: 8 rows returned.
| subject_name | average_minutes | measured_sessions |
|---|---|---|
| Geography | 61.1 | 19 |
| Biology | 59.8 | 24 |
| Chemistry | 58.4 | 16 |
| Computer Science | 48.8 | 29 |
| Mathematics | 48.5 | 30 |
| Economics | 47.8 | 9 |
| Physics | 46.7 | 24 |
| Astronomy | NULL | 0 |
Interpretation: Geography has the largest observed mean among recorded durations, about 61.1 minutes across 19 measured sessions. Nine missing durations are omitted from AVG; Astronomy has no measured sessions, so its mean is NULL rather than zero. Try it: Add HAVING COUNT(u.minutes_spent)>=10 to show only subjects with enough measured sessions.
Capstone 5: Which subjects have the most completed usage sessions?
SELECT s.subject_name, SUM(CASE WHEN u.completed=1 THEN 1 ELSE 0 END) AS completed_sessions FROM Subjects s LEFT JOIN Resources r ON r.subject_id=s.subject_id LEFT JOIN ResourceUsage u ON u.resource_id=r.resource_id GROUP BY s.subject_id,s.subject_name ORDER BY completed_sessions DESC,s.subject_name;
Executed result: 8 rows returned.
| subject_name | completed_sessions |
|---|---|
| Mathematics | 22 |
| Computer Science | 19 |
| Biology | 18 |
| Geography | 17 |
| Physics | 11 |
| Chemistry | 10 |
| Economics | 7 |
| Astronomy | 0 |
Interpretation: The artificial Mathematics category contains 22 sessions marked completed. The meaning of completed is a binary status attached to an event; it cannot tell us what a student understood or whether the learning was effective. Try it: Calculate completed_sessions divided by the total event count for each subject, handling the empty subject.
Capstone 6: Which students accessed at least three distinct resources?
SELECT st.student_code, COUNT(DISTINCT u.resource_id) AS unique_resources FROM Students st JOIN ResourceUsage u ON u.student_id=st.student_id GROUP BY st.student_id,st.student_code HAVING COUNT(DISTINCT u.resource_id)>=3 ORDER BY unique_resources DESC,st.student_code;
Executed result: 23 rows returned; the first 5 are shown below.
| student_code | unique_resources |
|---|---|
| STU-004 | 11 |
| STU-024 | 9 |
| STU-006 | 8 |
| STU-017 | 8 |
| STU-002 | 7 |
Interpretation: Twenty-three of the 24 fictional codes meet the three-distinct-resource rule. The table shows the first five of 23 actual rows; the complete executed output is in the companion results file. Repeated visits to the same resource contribute only once to the distinct count. Try it: Change the HAVING threshold to five, then count how many codes remain.
Capstone 7: Which resources have never been accessed?
SELECT r.resource_id,r.resource_title FROM Resources r LEFT JOIN ResourceUsage u ON u.resource_id=r.resource_id WHERE u.usage_id IS NULL ORDER BY r.resource_id;
Executed result: 1 row returned.
| resource_id | resource_title |
|---|---|
| 31 | Market Structures |
Interpretation: Market Structures, resource ID 31, is present in the resource catalog but has no usage event. A LEFT JOIN and an IS NULL test find missing relationships without erasing the catalog row. No access does not automatically mean the resource is poor. Try it: Replace the resource-level join with a subject-level version to find subjects without resources.
Capstone 8: How many access events occurred each month?
SELECT strftime('%Y-%m',access_date) AS access_month, COUNT(*) AS access_events, SUM(completed) AS completed_events FROM ResourceUsage GROUP BY strftime('%Y-%m',access_date) ORDER BY access_month;
Executed result: 5 rows returned.
| access_month | access_events | completed_events |
|---|---|---|
| 2026-01 | 33 | 24 |
| 2026-02 | 36 | 25 |
| 2026-03 | 27 | 15 |
| 2026-04 | 32 | 18 |
| 2026-05 | 32 | 22 |
Interpretation: February has 36 recorded visits, while March has 27. The five monthly visit counts sum to 160, and their completed-session totals sum to 104. This is a synthetic date series, not evidence of an authentic seasonal education trend. Try it: Count distinct student IDs by month and contrast them with event totals.
Capstone 9: Which resources have the highest mean session duration with adequate measurements?
SELECT r.resource_title, COUNT(u.minutes_spent) AS measured_sessions, ROUND(AVG(u.minutes_spent),1) AS mean_minutes FROM Resources r JOIN ResourceUsage u ON r.resource_id=u.resource_id GROUP BY r.resource_id,r.resource_title HAVING COUNT(u.minutes_spent)>=4 ORDER BY mean_minutes DESC,r.resource_title LIMIT 5;
Executed result: 5 rows returned.
| resource_title | measured_sessions | mean_minutes |
|---|---|---|
| Climate and Weather | 4 | 78.8 |
| Personal Budgeting | 5 | 65 |
| Atomic Structure Quiz | 5 | 63 |
| Cells and Microscopes | 5 | 61 |
| Elements and Compounds | 4 | 60 |
Interpretation: Climate and Weather has the largest displayed average: 78.8 minutes from four measured events. Requiring at least four non-NULL measurements avoids ranking a one-session average, but four is still a small count and not evidence of quality. Try it: Increase the minimum count in HAVING from four to five and inspect the changed leader.
Capstone 10: Which are the two most accessed resources within each subject?
WITH counts AS (SELECT s.subject_name,r.resource_id,r.resource_title,COUNT(u.usage_id) AS accesses FROM Resources r JOIN Subjects s ON s.subject_id=r.subject_id LEFT JOIN ResourceUsage u ON u.resource_id=r.resource_id GROUP BY s.subject_id,r.resource_id), ranked AS (SELECT *, ROW_NUMBER() OVER (PARTITION BY subject_name ORDER BY accesses DESC,resource_title,resource_id) AS position FROM counts) SELECT subject_name,position,resource_title,accesses FROM ranked WHERE position<=2 ORDER BY subject_name,position;
Executed result: 14 rows returned; the first 6 are shown below.
| subject_name | position | resource_title | accesses |
|---|---|---|---|
| Biology | 1 | Genetics Revision | 8 |
| Biology | 2 | Photosynthesis Practice | 6 |
| Chemistry | 1 | Atomic Structure Quiz | 7 |
| Chemistry | 2 | Balancing Chemical Equations | 4 |
| Computer Science | 1 | Introduction to Algorithms | 10 |
| Computer Science | 2 | Data Tables and SQL | 8 |
Interpretation: There are 14 ranked rows: two for each of the seven subjects that have resources. Astronomy has no resource to rank. This query combines two CTE stages, a LEFT JOIN for zero-use resources and ROW_NUMBER with deterministic tie-breaking. The table shows the first six verified rows. Try it: Change position<=2 to position=1 to show just one resource per populated subject.
Every capstone query has a matching key, query string, full output column list and complete output rows in verified_sql_results.json. The query collection can be run within DB Browser for SQLite or through Python’s sqlite3 interface. When a student modifies a query, that modification creates a new question; do not keep reporting the original verified number unless you rerun it.
Thirty original SQL practice challenges, with verified solutions
These thirty questions use only the companion fictional database. They progress from filtering to grouping and then analytical queries. Attempt each problem in DB Browser for SQLite or Python before expanding its answer. The full outputs are stored in the verified-results JSON file and the downloadable PDF guide; the previews below show actual executed rows, not invented examples.
Level 1 — Beginner: SELECT, filtering and simple aggregates
1. List subject names alphabetically.
Verified query (8 result rows; example: Astronomy)
SELECT subject_name FROM Subjects ORDER BY subject_name;2. Show the first five student codes and study levels.
Verified query (5 result rows; example: STU-001, First-year)
SELECT student_code,study_level FROM Students ORDER BY student_id LIMIT 5;3. Find all Beginner resources.
Verified query (10 result rows; example: Balancing Chemical Equations)
SELECT resource_title FROM Resources WHERE difficulty_level='Beginner' ORDER BY resource_title;4. List the unique resource types.
Verified query (4 result rows; example: Lesson)
SELECT DISTINCT resource_type FROM Resources ORDER BY resource_type;5. List the five longest estimated resources.
Verified query (5 result rows; example: Functions Practice, 60)
SELECT resource_title,estimated_minutes FROM Resources ORDER BY estimated_minutes DESC,resource_title LIMIT 5;6. Find resources estimated between 30 and 45 minutes.
Verified query (13 result rows; example: Cells and Microscopes, 30)
SELECT resource_title,estimated_minutes FROM Resources WHERE estimated_minutes BETWEEN 30 AND 45 ORDER BY estimated_minutes,resource_title;7. Find titles containing the text ‘data’ under SQLite LIKE behavior.
Verified query (1 result row; example: Data Tables and SQL)
SELECT resource_title FROM Resources WHERE resource_title LIKE '%data%' ORDER BY resource_title;8. Count usage records without recorded minutes.
Verified query (1 result row; example: 9)
SELECT COUNT(*) AS unknown_duration FROM ResourceUsage WHERE minutes_spent IS NULL;9. List the first four usage records with nonmissing duration.
Verified query (4 result rows; example: 1, 15)
SELECT usage_id,minutes_spent FROM ResourceUsage WHERE minutes_spent IS NOT NULL ORDER BY usage_id LIMIT 4;10. Calculate minimum, maximum and average estimated minutes.
Verified query (1 result row; example: 15, 60, 37.26)
SELECT MIN(estimated_minutes) AS min_minutes,MAX(estimated_minutes) AS max_minutes,ROUND(AVG(estimated_minutes),2) AS mean_minutes FROM Resources;Level 2 — Developing: GROUP BY, JOIN and conditional counts
11. Count resources at each difficulty level.
Verified query (3 result rows; example: Advanced, 10)
SELECT difficulty_level,COUNT(*) AS total FROM Resources GROUP BY difficulty_level ORDER BY difficulty_level;12. Find subjects that have at least four resources.
Verified query (7 result rows; example: Biology, 5)
SELECT s.subject_name,COUNT(r.resource_id) AS n FROM Subjects s LEFT JOIN Resources r ON r.subject_id=s.subject_id GROUP BY s.subject_id HAVING COUNT(r.resource_id)>=4 ORDER BY n DESC,s.subject_name;13. Match the first six resource titles with subject names.
Verified query (6 result rows; example: Cells and Microscopes, Biology)
SELECT r.resource_title,s.subject_name FROM Resources r INNER JOIN Subjects s ON r.subject_id=s.subject_id ORDER BY r.resource_id LIMIT 6;14. Retain every subject even if it has no resources.
Verified query (8 result rows; example: Astronomy, 0 (last row))
SELECT s.subject_name,COUNT(r.resource_id) AS n FROM Subjects s LEFT JOIN Resources r ON s.subject_id=r.subject_id GROUP BY s.subject_id ORDER BY s.subject_id;15. Count distinct learners by resource and list five leaders.
Verified query (5 result rows; example: Functions Practice, 9)
SELECT r.resource_title,COUNT(DISTINCT u.student_id) AS learners FROM Resources r LEFT JOIN ResourceUsage u ON r.resource_id=u.resource_id GROUP BY r.resource_id ORDER BY learners DESC,r.resource_title LIMIT 5;16. Find the five students with most completed events.
Verified query (5 result rows; example: STU-024, 9)
SELECT st.student_code,SUM(u.completed) AS completions FROM Students st JOIN ResourceUsage u ON st.student_id=u.student_id GROUP BY st.student_id ORDER BY completions DESC,st.student_code LIMIT 5;17. Calculate average measured usage duration for each used subject.
Verified query (7 result rows; example: Geography, 61.1)
SELECT s.subject_name,ROUND(AVG(u.minutes_spent),1) AS avg_mins FROM Subjects s JOIN Resources r ON s.subject_id=r.subject_id JOIN ResourceUsage u ON r.resource_id=u.resource_id GROUP BY s.subject_id ORDER BY avg_mins DESC,s.subject_name;18. Find learners who visited at least four different resources.
Verified query (22 result rows; example: STU-004, 11)
SELECT st.student_code,COUNT(DISTINCT u.resource_id) AS n FROM Students st JOIN ResourceUsage u ON u.student_id=st.student_id GROUP BY st.student_id HAVING COUNT(DISTINCT u.resource_id)>=4 ORDER BY n DESC,st.student_code;19. Compare the number of usage events with distinct students.
Verified query (1 result row; example: 160, 24)
SELECT COUNT(*) AS events,COUNT(DISTINCT student_id) AS learners FROM ResourceUsage;20. Summarize completed and incomplete events for each month.
Verified query (5 result rows; example: 2026-01: 24 completed, 9 incomplete)
SELECT strftime('%Y-%m',access_date) AS month,SUM(completed=1) AS completed,SUM(completed=0) AS incomplete FROM ResourceUsage GROUP BY month ORDER BY month;Level 3 — Challenge: subqueries, CTEs and analysis
21. List resources longer than the database average.
Verified query (15 result rows; example: Functions Practice, 60)
SELECT resource_title,estimated_minutes FROM Resources WHERE estimated_minutes>(SELECT AVG(estimated_minutes) FROM Resources) ORDER BY estimated_minutes DESC,resource_title;22. Use a CTE to find five subjects with most usage events.
Verified query (5 result rows; example: Mathematics, 32)
WITH x AS (SELECT s.subject_name,COUNT(u.usage_id) AS events FROM Subjects s LEFT JOIN Resources r ON r.subject_id=s.subject_id LEFT JOIN ResourceUsage u ON u.resource_id=r.resource_id GROUP BY s.subject_id) SELECT * FROM x ORDER BY events DESC,subject_name LIMIT 5;23. Rank each subject’s resources by access count, showing first three rows.
Verified query (3 result rows; example: Biology, Genetics Revision, 8, rank 1)
WITH x AS (SELECT s.subject_name,r.resource_title,COUNT(u.usage_id) AS visits FROM Resources r JOIN Subjects s ON s.subject_id=r.subject_id LEFT JOIN ResourceUsage u ON u.resource_id=r.resource_id GROUP BY r.resource_id) SELECT subject_name,resource_title,visits,ROW_NUMBER() OVER (PARTITION BY subject_name ORDER BY visits DESC,resource_title) AS position FROM x ORDER BY subject_name,position LIMIT 3;24. Identify resources with no access events.
Verified query (1 result row; example: Market Structures)
SELECT r.resource_title FROM Resources r LEFT JOIN ResourceUsage u ON r.resource_id=u.resource_id WHERE u.usage_id IS NULL ORDER BY r.resource_id;25. Count usage events for each month.
Verified query (5 result rows; example: 2026-01, 33)
SELECT strftime('%Y-%m',access_date) AS month,COUNT(*) AS visits FROM ResourceUsage GROUP BY month ORDER BY month;26. Check for duplicated student codes.
Verified query (0 result rows; no matching rows)
SELECT student_code,COUNT(*) AS n FROM Students GROUP BY student_code HAVING COUNT(*)>1;27. Count missing and negative recorded durations.
Verified query (1 result row; example: 9 missing, 0 negative)
SELECT SUM(minutes_spent IS NULL) AS missing_minutes,SUM(minutes_spent<0) AS negative_minutes FROM ResourceUsage;28. Use ROW_NUMBER to find the leading resource in each populated subject.
Verified query (7 result rows; example: Biology, Genetics Revision, 8)
WITH x AS(SELECT s.subject_name,r.resource_title,COUNT(u.usage_id) AS n FROM Resources r JOIN Subjects s ON s.subject_id=r.subject_id LEFT JOIN ResourceUsage u ON u.resource_id=r.resource_id GROUP BY r.resource_id),z AS(SELECT *,ROW_NUMBER() OVER (PARTITION BY subject_name ORDER BY n DESC,resource_title) AS rn FROM x) SELECT subject_name,resource_title,n FROM z WHERE rn=1 ORDER BY subject_name;29. Find distinct learners who completed resources in each subject.
Verified query (8 result rows; example: Biology, 15)
SELECT s.subject_name,COUNT(DISTINCT CASE WHEN u.completed=1 THEN u.student_id END) AS completing_students FROM Subjects s LEFT JOIN Resources r ON s.subject_id=r.subject_id LEFT JOIN ResourceUsage u ON r.resource_id=u.resource_id GROUP BY s.subject_id ORDER BY completing_students DESC,s.subject_name;30. Build a subject report with resource count, usage count and average duration.
Verified query (8 result rows; example: Astronomy, 0, 0, NULL)
SELECT s.subject_name,COUNT(DISTINCT r.resource_id) AS resources,COUNT(u.usage_id) AS uses,ROUND(AVG(u.minutes_spent),1) AS avg_minutes FROM Subjects s LEFT JOIN Resources r ON r.subject_id=s.subject_id LEFT JOIN ResourceUsage u ON u.resource_id=r.resource_id GROUP BY s.subject_id ORDER BY s.subject_name;Common SQL mistakes and practical corrections
Syntax and filtering: Check spelling, commas, parentheses and quotation marks; SQLite identifiers and string literals have different roles. Use IS NULL instead of = NULL. Put individual-row conditions in WHERE and group filters in HAVING. Parenthesize combinations of AND and OR. A query can run without a syntax error and still express the wrong research question, so verify its meaning with a small known sample.
Joins and counting: Always write the intended join condition, or an accidental cross join can multiply rows. A valid one-to-many join also creates repeated entity IDs when each related record appears separately. Use COUNT on the correct column and COUNT DISTINCT when counting distinct units; COUNT(*) may count a preserved LEFT JOIN placeholder as a row. Do not assume output ordering without ORDER BY, and do not call LIMIT 5 a top-five ranking until the sort is specified.
Safety and reproducibility: Avoid mixing SQLite code with functions from other SQL dialects, never concatenate untrusted input into SQL, keep a copy of the original database and document changes to tables. Read the query output and compare totals across related summaries. If a result seems unexpected, inspect sample rows and the exact aggregation denominator before changing the query solely to obtain a more pleasing number.
Four-week SQL learning roadmap
| Week | Learning objectives | Practice milestone |
|---|---|---|
| 1 — Foundations | Tables, keys, SELECT, WHERE, DISTINCT, ORDER BY | Retrieve and explain at least five verified result sets |
| 2 — Aggregation | COUNT, SUM, AVG, NULL, GROUP BY, HAVING | Reproduce subject totals without counting placeholder rows |
| 3 — Relational analysis | INNER JOIN, LEFT JOIN, subqueries and CTEs | Find both unmatched Astronomy and unused Market Structures |
| 4 — Complete project | Window functions, data quality, Pandas and reporting | Run ten capstone questions and explain their limitations |
A month is a practical first learning cycle, not mastery of every SQL feature. Some beginners will need more time to understand aggregate denominators or join multiplicity. Keep a notebook of each tested query and its intended question. After the four-week capstone, experiment with a copy of the database and compare SQL results to a Pandas groupby result before exploring other relational systems.

Downloadable SQL learning resources
Students can download the 30-question SQL practice worksheet (PDF) and complete verified SQL solutions (PDF) directly from the WordPress media library. The full companion ZIP with the SQLite .db, deterministic setup SQL, practice query collection, Python notebook, schema diagram, verified-results JSON, charts and README is included in the accompanying completion report. This WordPress uploader accepted the diagrams and PDFs but did not provide a verified site download for the database, notebook or ZIP, so the article does not invent their URLs.
Optional SQL courses on Coursera and Udemy
Both courses are optional next steps. Disclosure: the official course destinations have been checked, but approved Notes for SHS affiliate tracking was not verified; these are informational links, not invented affiliate URLs. Course requirements and availability may change. The Udemy course primarily teaches PostgreSQL, so its concepts transfer but its dialect-specific commands should not be pasted unchanged into the SQLite project.

SQL for Data Science — UC Davis
Coursera: beginner-oriented querying, filtering, joins and data analysis for aspiring data scientists.

The Complete SQL Bootcamp
Udemy: structured beginner SQL practice using PostgreSQL and pgAdmin; SQL dialect details differ from SQLite.
Frequently asked SQL questions
What is SQL in data science?
SQL is a language for querying and manipulating structured relational data. Analysts use it to filter, join and summarize information before further analysis.
Is SQL difficult for beginners?
Basic SELECT, WHERE and ORDER BY statements are approachable. Joins and grouped summaries require more practice, but the supplied database makes them reproducible.
Can high school students learn SQL?
Yes. Start with a small public or fictional database, a free SQLite editor and clear questions. No advanced server management is required.
Do I need Python to learn SQL?
No. DB Browser for SQLite can run queries directly. Python is useful later for automation and charts.
What is the difference between SQL and SQLite?
SQL is the language family; SQLite is one embedded database engine and SQL dialect.
What does SELECT do?
It specifies which columns or computed expressions a query should return, generally from a table or a more complex query source.
What does GROUP BY do?
It forms groups of rows so aggregate functions can summarize each group, such as accesses per subject.
How are WHERE and HAVING different?
WHERE filters input rows before grouping. HAVING filters groups using aggregate conditions after grouping.
How do INNER JOIN and LEFT JOIN differ?
INNER JOIN keeps matching combinations. LEFT JOIN also retains unmatched rows from the left table with NULLs for unavailable right-side fields.
How can I handle missing SQL values?
Test missingness with IS NULL and IS NOT NULL; understand how aggregate functions ignore NULL and avoid treating it as zero without justification.
Related Notes for SHS lessons and original documentation
Build on confirmed Notes for SHS articles: How to Use Pandas in Python, Build Your First Data Science Project Using Python and Pandas, 25 Python Data Analysis Exercises, How to Evaluate Machine Learning Models and Introduction to Data Science. These are verified published posts on the connected staging site.
Official technical references: SQLite documentation, SELECT reference, aggregate functions, window functions, foreign keys, Python sqlite3 module and Pandas read_sql_query. These support the specific SQLite and Python syntax used in the tutorial.
Conclusion: SQL makes questions about relational data reproducible
Learning SQL begins with a simple SELECT, but its real value becomes clear when tables relate to one another. You have filtered resources, detected NULL durations, grouped usage events, combined subjects and resources with INNER JOIN and LEFT JOIN, and used subqueries, CTEs and window functions to answer more complex questions. The same fictional database supported every lesson, so its results remain traceable.
The strongest analyst is not the person who writes the longest query. It is the person who asks a precise question, understands what each row represents, chooses the correct join and aggregate, checks unexpected results and states clearly what the evidence can support. Use the database and answer guide to rerun the ten capstone tasks, complete the 30 practice challenges without looking first, and then explain your findings accurately in your own words.
1 response to “SQL for Data Science Beginners: Learn Queries with Practical Examples”