The document proposes a relational database model for a medicine management system with three tables: Patient, Medicine, and Dose. It includes 14 SQL queries to demonstrate how to: insert data into the tables, display all patient data, calculate aggregate values, filter patients by location and other criteria, and filter medicines by production date and expiration period. The model and queries provide examples for creating, reading, and querying data in a relational database to manage patient, medicine, and dosing information.
The document proposes a relational database model for a medicine management system with three tables: Patient, Medicine, and Dose. It includes 14 SQL queries to demonstrate how to: insert data into the tables, display all patient data, calculate aggregate values, filter patients by location and other criteria, and filter medicines by production date and expiration period. The model and queries provide examples for creating, reading, and querying data in a relational database to manage patient, medicine, and dosing information.
The document proposes a relational database model for a medicine management system with three tables: Patient, Medicine, and Dose. It includes 14 SQL queries to demonstrate how to: insert data into the tables, display all patient data, calculate aggregate values, filter patients by location and other criteria, and filter medicines by production date and expiration period. The model and queries provide examples for creating, reading, and querying data in a relational database to manage patient, medicine, and dosing information.
b. Insert data into table Medecine c. Insert data into table Dose d. Display the table Patient (All Data) e. Display the Sum of Prices’ Medecines f. Display the Average of Patient’s Age g. Display all Patients living in Tunis h. Display all Patients living in Tunis sorted by name i. Display all Patients living in Tunis whom name begins by ‘A’ j. Display all Patients living in Tunis whom email end by ‘gmail.com’ k. Display all Patients living in Tunis or Bizerte l. Display all Patients living in Tunis and Sfax m. Display all Medecines producted before 2019 n. Display all Medecines producted between 2016 and 2019 o. Display all Medecines that have a 1 year validity