Loading Page Content...
Preparing courses, live labs, and learning resources.सामग्री लोड हो रही है, कृपया प्रतीक्षा करें...
Preparing courses, live labs, and learning resources.सामग्री लोड हो रही है, कृपया प्रतीक्षा करें...
Welcome to your first practical capstone project! In this project, you will step into the shoes of a Lead Database Architect tasked with designing, implementing, and querying a production-ready Student Information System (SIS) for MSK Tech Academy.
This project integrates every concept you have learned across Level 1: DDL database and table creation, constraints, foreign keys, DML data population, multi-column sorting, scalar functions, and aggregation with GROUP BY and HAVING.
Our educational institute requires tracking:
+--------------------+ +--------------------+
| departments | | students |
+--------------------+ +--------------------+
| dept_id (PK) | <------- | student_id (PK) |
| dept_name | 1:N | full_name |
+--------------------+ | email (UQ) |
| dept_id (FK) |
| fee_balance |
+--------------------+Copy and execute this script in MySQL Workbench or CLI:
Now, let us write the queries that the academy's executive directors and administrative staff use daily:
You have designed a normalized database from scratch! It features:
ON DELETE RESTRICT specified on the foreign key linking students to departments?TIMESTAMPDIFF(YEAR, date_of_birth, CURDATE()) calculate?fee_balance = -500.00?HAVING COUNT(*) >= 2 accomplish?Continue learning with hands-on practice, examples, and exercises in the upcoming topic.
| Previous Lesson | Next Lesson |
|---|---|
| Exporting & Importing CSV Data | Project 2: Retail Store Inventory Management System |
Test your understanding of this lesson with 5 questions. Each question has one correct answer.