Presentation is loading. Please wait.

Presentation is loading. Please wait.

Workshop Exercise (Week 6)

Similar presentations


Presentation on theme: "Workshop Exercise (Week 6)"— Presentation transcript:

1 Workshop Exercise (Week 6)
Consider a hospital information system with the following characteristics: A patient can either be a resident patient who is admitted to the hospital or an out-patient who comes to the hospital for an out-patient clinic For both types of patient we will need to hold the patient's name, telephone number, address, date of birth and the patient's family doctor (GP) For a resident patient we will need to hold the ward name in which the patient is currently residing, the admission date of the patient, and also information about any operations that the patient has had The operation information will have to include the date and time of the operation, the doctor (assume one) who carried out the operation plus the theatre where the operation took place For both GPs and hospital doctors we will need to hold the doctor's name and telephone number; in addition we will need to hold the GP's address and the hospital doctor's specialism code (for example, he or she may specialise in ENT, problems relating to ear, nose and throat ) - assume one per hospital doctor For out-patients we will need to hold information about the outpatients' appointments: the appointment date and time and the hospital doctor who attended to the patient. This is the same case study that you carried out the data analysis on in tutorial 1. For this session - workings in pairs, attempt to identify the appropriate entities and their associated attributes. Using QSEE, draw the high-level E-R model. Identify the primary keys for each entity & note how QSEE resolves the many-to-many relationships (by generating foreign keys) when you use it to generate the SQL DDL.


Download ppt "Workshop Exercise (Week 6)"

Similar presentations


Ads by Google