How doaaalg/hospital works
This is a small SQL database example, not an application service: hospital.sql defines hospital data, and six standalone SQL files demonstrate queries or a patient insert. The documented workflow is to import the database into a SQL system, then copy and run a query. Query-to-database links reflect the operations described in the README; no SQL source excerpts were provided, so table-level details and execution mechanics are not inferred.
Main entry points: hospital.sql Hospital database · DoctorPrescriptions.sql Doctor prescriptions · DoctorsAtBiggestHospital.sql Biggest hospital doctors · DoctorsAtaHospital.sql Hospital doctors
Components 9
Database schema
- Hospital database
hospital.sql
SQL queries
- Doctor prescriptions
DoctorPrescriptions.sql - Biggest hospital doctors
DoctorsAtBiggestHospital.sql - Hospital doctors
DoctorsAtaHospital.sql - Top prescriber
MostPrescriptionsDoctor.sql - New patient insert
NewPatient.sql - Patient prescriptions
PatientPrescriptions.sql
Other components
- Database user
- SQL system
Connections 13
- Database user → SQL system: imports database
README.md - Database user → Doctor prescriptions: runs query
README.md - Database user → Biggest hospital doctors: runs query
README.md - Database user → Hospital doctors: runs query
README.md - Database user → Top prescriber: runs query
README.md - Database user → New patient insert: runs insert
README.md - Database user → Patient prescriptions: runs query
README.md - Doctor prescriptions → Hospital database: reads prescriptions
README.md - Biggest hospital doctors → Hospital database: reads doctors and hospitals
README.md - Hospital doctors → Hospital database: reads doctors
README.md - Top prescriber → Hospital database: counts prescriptions
README.md - New patient insert → Hospital database: inserts patient
README.md - Patient prescriptions → Hospital database: reads prescriptions
README.md