As I continued building my Hospital Records Analysis project, I reached a point where simple SQL queries were no longer enough. Initially, all my hospital information existed in one table, the patient_records . This table contained:
Patient details
Doctor information
Hospital departments
Visit details
Billing information
Payment information
Although this structure was convenient for analysis, it introduced a challenge and it was data repetition. Doctor names and department names were stored repeatedly across thousands of patient records. This led me to my next SQL learning milestone, Database normalization. Moving From One Table to multiple related tables. I separated the data into smaller, purpose-driven tables:
1. Doctors Table
Stores unique doctor information.
doctor_id doctor_name
Enter fullscreen mode
Exit fullscreen mode
Each doctor now has a unique identifier instead of repeating the doctor's name in every record.
2.…