Presentation is loading. Please wait.

Presentation is loading. Please wait.

Section 09 (a)ER Modelling In Practice1 HSQ - DATABASES & SQL And Franchise Colleges 09 (a) ER Modelling In Practice DIGITAL VOICE SYSTEM.

Similar presentations


Presentation on theme: "Section 09 (a)ER Modelling In Practice1 HSQ - DATABASES & SQL And Franchise Colleges 09 (a) ER Modelling In Practice DIGITAL VOICE SYSTEM."— Presentation transcript:

1 Section 09 (a)ER Modelling In Practice1 HSQ - DATABASES & SQL And Franchise Colleges 09 (a) ER Modelling In Practice DIGITAL VOICE SYSTEM

2 Section 09 (a)ER Modelling In Practice2 Case Study : Digital Voice System This lecture introduces the Digital Voice Systems Scenario The lecture uses a brief version of the scenario to introduce you to the model. The full scenario and solution is on the website - you need to attempt the full scenario yourself.

3 Section 09 (a)ER Modelling In Practice3 Modern private digital voice systems exchanges are basically complex computer systems. Private digital telephone networks are often used by organisations with a number of multi- building sites. These sites would be distributed around the country, each site would have one or more digital exchanges. At each site there would be a number of employees directly involved in the running of the voice systems. In particular a system would have to keep track of a telephone exchange manager for each site as well as the telephone operators. These digital exchanges are capable of providing a continual log of their activity. Every call is logged providing information as below: Outgoing calls: source extension, destination number, charge band. Incoming calls: destination extension, duration of call, number of rings before answered etc. Clearly details of many employees would need to be recorded together with the details of their associated telephone extensions. In practice employees might have more than one extension. Some employees also might share extensions and the system would have to be capable of coping with this. Organisations would divide their employees into departments. Calls would be charged against these department. It will be necessary that each extension would be associated with a single department for call charging. Case Study : DIGITAL VOICE SYSTEM

4 Section 09 (a)ER Modelling In Practice4 Modern private digital voice systems exchanges are basically complex computer systems. Private digital telephone networks are often used by organisations with a number of multi- building sites. These sites would be distributed around the country, each site would have one or more digital exchanges. What entities can you see - a little imagination is required. Building Exchange in m 1 Site in 1 m Room 1 m on What about the relationships? Try to draw those in. Site - Building - Room; a simple hierarchy. You could also have a Floor entity - rooms are often named by building, floor, room number.

5 Section 09 (a)ER Modelling In Practice5 At each site there would be a number of employees directly involved in the running of the voice systems. In particular a system would have to keep track of a telephone exchange manager for each site as well as the telephone operators. Just use an Employee entity and model this with relationships. Site in 1 m Building Exchange in m 1 Site in 1 m Room 1 m on Employee operates 1 m manages (voice) 1 m Requires a Table

6 Section 09 (a)ER Modelling In Practice6 These digital exchanges are capable of providing a continual log of their activity. Every call is logged providing information As below: Outgoing calls: source extension, destination number, charge band. Incoming calls: destination extension, duration of call, number of rings before answered etc. How do we model this bit? Extension from 1 m Incoming Call 1 m to Outgoing Call You will need the Extension entity. (Telephone extension) Try to add appropriate relationships.

7 Section 09 (a)ER Modelling In Practice7 At each site there would be a number of employees directly involved in the running of the voice systems. In particular a system would have to keep track of a telephone exchange manager for each site as well as the telephone operators. Just use an Employee entity and model this with relationships. Site in 1 m Building Exchange in m 1 Site in 1 m Room 1 m on Employee operates 1 m manages (voice) 1 m Requires a Table

8 Section 09 (a)ER Modelling In Practice8 These digital exchanges are capable of providing a continual log of their activity. Every call is logged providing information As below: Outgoing calls: source extension, destination number, charge band. Incoming calls: destination extension, duration of call, number of rings before answered etc. How do we model this bit? Extension from 1 m Incoming Call 1 m to Outgoing Call You will need the Extension entity. (Telephone extension) Try to add appropriate relationships.

9 Section 09 (a)ER Modelling In Practice9 Reviewing what we have so far... Try to link these sections. –What is an extension connected to?. Site in 1 m Building Exchange in m 1 Site in 1 m Room 1 m on Employee operates 1 m manages (voice) 1 m Requires a Table Extension from 1 m Incoming Call 1 m to Outgoing Call Plugged into 1 m

10 Section 09 (a)ER Modelling In Practice10 Clearly details of many employees would need to be recorded together with the details of their associated telephone extensions. In practice employees might have more than one extension. Some employees also might share extensions and the system would have to be capable of coping with this. Starting from the Extension entity, how would you model this? Employee for m m m Extension Employee 1 m Now decompose it. ?? 1 m Extension Now we need a name for the new entity, attributes and a primary key. Trying asymmetric viewing: For a particular extension - what is it a list of ? All the employees with that extension number. For an individual employee - what is this a list of? The employee’s extension number (or numbers)

11 Section 09 (a)ER Modelling In Practice11 Naming the complex entity Any ideas for a name for this entity? How about Directory-Entry –Quite difficult to name…. Directory Entry Extension Employee 1 m 1 m for on We need an attribute for Directory-Entry. The primary key could be [ extn#, emp# ] The entity records an employee being associated with an extension. Any ideas for attributes? Would a date be appropriate? (always a useful guess) –The date the employee was given the extension number

12 Section 09 (a)ER Modelling In Practice12 Testing the primary key The primary key could be [ extn#, emp# ] so we do the usual test. –Make up a few rows: Now try to break the chosen primary key’ –Adding a row with the same primary key value as another row. If we assume we only hold the latest date on which an extension is allocated to an employee - then the primary key seems to be appropriate.

13 Section 09 (a)ER Modelling In Practice13 Organisations would divide their employees into departments. Calls would be charged against these department. It will be necessary that each extension would be associated with a single department for call charging. Try to model this …. Extension from 1 m Incoming Call 1 m to Outgoing Call EmployeeDepartment Charged to 1 m 1 m in To you to attempt (later) : –The full scenario is on the website. Try to re-model the scenario using the full scenario. –Try to derive the tables for the Digital Voice Systems model.

14 Section 09 (a)ER Modelling In Practice14 Specialisation Re-draw this as a specialisation structure Extension from 1 m Incoming Call 1 m to Outgoing Call InternalOutgoingIncoming call-type …….. A better structure? Specialisation provides a more powerful model for this type of situation.

15 Section 09 (a)ER Modelling In Practice15 End of Lecture


Download ppt "Section 09 (a)ER Modelling In Practice1 HSQ - DATABASES & SQL And Franchise Colleges 09 (a) ER Modelling In Practice DIGITAL VOICE SYSTEM."

Similar presentations


Ads by Google