๐ Data Technician Workbook - SQL | Just IT's Data Skills Bootcamp (PDF)
This repository contains my completed SQL workbook from Just IT's Data Skills Bootcamp. It demonstrates my understanding of SQL concepts, relational databases, and practical SQL querying techniques using a real-world dataset.
The workbook includes research-based theory, hands-on exercises using the world_db sample dataset, and a final applied project that simulates building a database for a small retail business.
- Primary Keys vs. Foreign Keys
- One-to-One, One-to-Many, and Many-to-Many Relationships
- Relational vs. Non-Relational Databases
- Use cases for different database types
- INNER JOIN
- LEFT JOIN
- RIGHT JOIN
- FULL OUTER JOIN
- SELF JOIN
- CROSS JOIN
Each join is explained with definitions, real-world applications, and example SQL syntax.
Real-world scenario-based SQL queries using a sample database:
| Task | Description |
|---|---|
| โ Count cities in the USA | Basic COUNT query |
| ๐ Country with highest life expectancy | Using MAX() |
| ๐บ๏ธ Cities with "New" in the name | LIKE clause usage |
| ๐ข Top 10 most populous cities | ORDER BY with LIMIT |
| ๐งฎ Cities with population > 2M | WHERE filtering |
| ๐ Cities starting with "Be" | Pattern matching |
| ๐ Cities with mid-range population | BETWEEN clause |
| ๐ Cities sorted by name | Alphabetical sorting |
| ๐๏ธ Most and least populated cities | MAX() and MIN() |
| ๐ City name frequency count | GROUP BY and COUNT() |
| ๐ Country with highest population | Aggregation queries |
| ๐ช๐ธ Capital city of Spain | Simple WHERE clause |
| ๐ช๐บ List of European cities | Region filtering |
| ๐ฅ Average population by country | GROUP BY with AVG() |
| ๐๏ธ Capital cities population comparison | Advanced joins |
| ๐พ Countries with low population density | Custom metrics |
| ๐ฐ Cities with high GDP per capita | Economic analysis |
| ๐ Cities ranked 31โ40 by population | Pagination with LIMIT & OFFSET |
Title: Designing and Implementing a SQL Database for a Small Retail Business
A 500-word essay and SQL implementation covering:
- Identifying business requirements for inventory, sales, and customer tracking
- Database schema design with appropriate relationships
- SQL scripts to create tables (
CREATE TABLE,FOREIGN KEY) - Sample
INSERTstatements for test data - SQL-based security & backup practices (
GRANT,mysqldump)
- SQL client tools: MySQL Workbench
world_dbsample dataset- Power Query Editor (for review)
By completing this workbook, I developed proficiency in:
- Writing accurate SQL queries for analysis and reporting
- Understanding relational database design
- Solving practical business problems using SQL
- Communicating technical solutions clearly