1. Produce a data model that accurately reflects a business scenario.
2. Produce a database design based on a given data model.
3. Implement the design using a relational database management system such as Apex, and Oracle, and produce SQL queries to meet given user requirements.
Draw an entity-relationship diagram that represents the information requirements above for CHI-22, New Orleans. In particular, you are required to establish the association between the entities: seminars, attendees, auditoriumsÂ and dates. Â
- Using your ER diagram in part a, give a brief descriptionand an exampleÂ of each of the following. Â Â
- Key Â Â Â
- Composite Key
- Key Constraint
- Total Participation
CHI-22 seminar eventâs principal organizers: Olivia, Eugene, Pope, Leign-Ann, and Egginton, uncovered new fundamental information requirementsat their last pre-event planning meeting. Nonetheless, they also concluded that some of these new requirements may not be easily captured in an ER diagram. The additional business rules are:
- Each attendeehad to register to attend at leastÂ one seminar.
- Every seminarconfirmed had to have an associated principal organizerÂ among the attendees.
- Attendeesmay not be able to register for two separate seminarsÂ on the same business day.
Â Which two requirements above can be represented in an ER diagram?
Show the required modifications to your ER diagram for oneof those two new requirements.
The related information requirementsÂ for Northumbria University on-site car parking facilities for staff have been captured in Figure 1.2. Â Every car park will have a fixed number of parking spacesÂ and every car parking spaceÂ will have a unique ID. Additionally, data on the capacityÂ for each car park held in a separate record has been previously shown to you â the System Analyst. Members of staff can apply to use a single parking space exclusively; the following personally identifiable information would be required: staff number, name, work telephone number and vehicle registration number.
- Draw an entity-relationship diagram that represents all of the aboveinformation requirements for Northumbria University Staff Parking.
- State any business rules and assumptions you have reached necessary to support your ER Model.
The Oxleas Mental Health Hospital, LondonÂ offer a wide range of health and social care services to people living in south east London and parts of Kent. Its community health care unit offer services such as district nursing and health visiting, care for people with learning disabilities and mental health care such as psychiatry, nursing and therapies. Further, its multidisciplinary teams look after people of all ages and we work in partnership with other parts of the NHS, local councils and the voluntary sector.
The Outpatient Prescription Sheet for Oxleas Mental Health Hospital is shown below in Figure 1.3.
The data entry form shown inÂ is susceptible to various update anomalies. Give examples of the insertion, deletion and update anomalies in the data.
You are to examine the Outpatient Prescription Sheet,then identify the functional dependencies amongst the attributes. Also, you are required to articulate any assumptions youâve reached about the data supplied and the attributes shown in this form.
Detail and demonstrate the process of normalizing the attributes shown in the form to produce a set of well-designed 3NF relations. Â Identify the primary, alternate, and foreign keys in your 3NF relations.
Section C â Logical Database Design and Oracle SQL Implementation/Querying
Â You are tasked to implement and subsequently query an ORACLE database using the APEXÂ server. The database is derived from the given tables set in Appendix B. Â You must work individually for this assignment. Â
You need to create all the tables listed in Appendix B. Make sure the appropriate fields are defined as key, and that other suitable data integrity rules are enforced. All table namesÂ should be prefixed your student ID.Â For example, if you create a table called customer, and your student id is p123456Â then you should name the table p123456_customer.Â
All attributesÂ within each table should be prefixed with your initials.Â For example, it you create an attribute called firstnameÂ within the customer table and your name is Charlie Enfield Brown then your column name should beÂ ceb_firstname.Â Â
Populate your Oracle tables with the given data and then add 5 more rowsÂ in each table with more data.
Using the tables provided in Appendix B, define and run SIX new queries of your choice. Each query should require TWO or more of the following querying facilities, (and all of these facilities should be used at least once in your set of queries) and should be properly justified as to why the query would be useful to the SecondHome case study organisation:
- Selection of particular table columns
- Join of at least 2 tables
- Use of count and/or another similar mathematical expression
- Use of a sorting/ordering facility
- A condition using â<â, â>â, LIKE etc.
- A condition using IN, NOT NULL, or similar.
- A sub-query
In addition to the above, you are required to choose SIX queries from Appendix A, implement them in SQL, run the queries and document the results. You are required to document reasons why you chose each query and also the results of the query with the corresponding SQL.