Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions submissions/AI/ferkioui_akram/REPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Submission Report - Practical SQL Projects

**Student:** FERKIOUI Akram
**Group:** AI_2
**Specialty:** Artificial Intelligence (AI)
**Date:** February 14, 2026

## 📂 Submission Content

This folder contains the solutions for the two practical works (TPs) as requested:

- `tp1_solutions.sql`: Complete solution for the University Management System.
- `tp2_solutions.sql`: Complete solution for the Hospital Management System.

## 🛠️ Work Overview

### TP1: University Management System
- **Database Created:** `university_db`
- **Tables Implemented:**
- `departments` (4 records)
- `professors` (6 records)
- `students` (8 records)
- `courses` (7 records)
- `enrollments` (15 records)
- `grades` (12 records)
- **Features:**
- All constraints (Primary Keys, Foreign Keys, Checks, Defaults) are implemented.
- Required indexes for performance improvement are added.
- 30 SQL queries answering all questions from the assignment are included.

### TP2: Hospital Management System
- **Database Created:** `hospital_db`
- **Tables Implemented:**
- `specialties` (6 records)
- `doctors` (6 records)
- `patients` (8 records)
- `consultations` (8 records)
- `medications` (10 records)
- `prescriptions` (7 records)
- `prescription_details` (12 records)
- **Features:**
- Complex relationships (e.g., prescriptions linked to consultations) are valid.
- Enum types used for `gender` and `status`.
- Date arithmetic logic implemented for expiration checks.
- All 30 SQL queries are implemented and tested.

## 📝 Notes for the Teacher
- The SQL files are designed to be run from top to bottom. They include `DROP DATABASE IF EXISTS` to ensure a clean slate on every run.
- Data insertion covers various edge cases required for the queries (e.g., expiring medications, students with specific averages).
- All queries are commented with the question number and description.

---
*Generated by AI Assistant for Student Application*
Loading