Resource · Guide or article
Working with Data: Relational Databases
A gentle introduction to relational databases and SQL, built around one cities and rainfall example. Suits beginners who need to understand tables, keys and joins before attempting SQL interview questions.
Reviewed
Open the original: Working with Data: Relational Databases (opens the original site in a new tab)Practice this topicOpens the practice interviewer in System design mode; choose a question there.
Add to a roadmap
Keep this resource with a roadmap you follow. It appears as your own extra resource; the roadmap's steps don't change and it doesn't count toward your tracked steps.
Source content: English
Chances are you have used a spreadsheet in the past to store information. You had a set of rows and columns, where the rows contained the information (or data), and the columns described the information (sometimes called metadata). A relational database is built upon this core principle of columns and rows in tables, allowing you to have information spread across multiple tables. This allows you to work with more complex data, avoid duplication, and have flexibility in the…
PrepKit overview
PrepKit editors wrote and reviewed this overview from the source repository. It is not text from the resource itself.
- Suited to
- The source does not state a level
- Format
- Lesson
What it covers
- Why a single table leads to duplication or awkward year columns
- Primary keys and foreign keys, shown by splitting cities and rainfall into two tables
- SELECT, FROM and WHERE for basic retrieval and filtering
- An INNER JOIN that matches rainfall to cities and filters by year
How to use it
PrepKit study advice, not a claim made by the source.
Recreate the two tables in any SQL database, run each query, then extend it: add a population column, find the wettest city per year, and count years per city. Done when you can write the join without looking.
Scope and limitations
Covers only basic SELECT, WHERE and INNER JOIN, nothing on aggregation, other joins or indexes. The join examples omit a comma between selected columns, so they fail as printed. It is a beginner lesson, not interview practice.
Access and format
Lesson README in the microsoft/Data-Science-For-Beginners GitHub repository (MIT), free to read in English. Quizzes are linked externally and the assignment is a separate file.
Reviewed by PrepKit on Oct 2, 2026. Listing source commit: 4d2ac427ad6f
Evidence behind this overview
- 2-Working-With-Data/05-relational-databases/README.md
Pages that include this
Get the PrepKit newsletter
Optional. You don't need it to use PrepKit.