Discuss any issues with the er diagram

Assignment Help Database Management System
Reference no: EM131934749

Database Concepts

Question: The Relational model

A spreadsheet was used to keep data for the booking system of the ABC Clinic, with sample data shown in Table 1. Columns 1-4 contain information for doctors, Columns 5-9 contain information for patients and the last 3 columns contain information for patient's appointments with doctors. The spreadsheet for the table is also available on Canvas.

1911_Data for the ABC Clinic.jpg

Table 1. Data for the ABC Clinic

With more and more patients and doctors, the ABC Clinic decides to go for database system to manage data. You are asked to design a relational database to keep data to answer clinic operation queries such as:
- List the patient appointments for each doctor for a given date.
- When a patient rings to make an appointment, give the available time slots for a given date.
- Retrieve the address of patients to send notices via mail services.

Questions:

A database schema of one relation as shown below is proposed, where semantics of attributes are self-explanatory. Discuss at least two weaknesses of this design.

ABC(doc-name, doc-gender, registration_num, qualification, pat-name, pat-gender, DOB, address, phone-num, appoint-date, appoint-time, type)

Propose your own design for the database. Your design must be able to keep all information shown in Table 1. Explain your design. Give the schema for each relation in your database and specify their data integrity constraints (underline primary keys and put asterisk for foreign keys).

Question 2. Relational model -- SQL DDL and DML

According to your design for the ABC database in Question 1.2, complete below tasks to populate your database with the data shown in Table 1.

Give the CREATE TABLE statement for each relation, including primary key and any foreign key constraints.

Give the INSERT INTO statements for each relation in your design. All data shown in Table 1 must be inserted into your database.

Question 3. SQL

In addition to the lecture notes, you should also study by yourself the SQL*Plus tutorial on Canvas (the Oracle section) and other resources for Oracle syntax and useful functions.

The ER model for the Academics database is as follows:

The relational schema for the Academics database is as follows:

321_Relational schema.jpg

DEPARTMENT(deptnum, descrip, instname, deptname, state, postcode)

ACADEMIC(acnum, deptnum*, famname, givename, initials, title) PAPER(panum, title)
AUTHOR(panum*, acnum*)

FIELD(fieldnum, id, title)

INTEREST(fieldnum*, acnum*, descrip)

Some notes on the Academics database:
- An academic department belongs to one institution (instname) and often has many academics. An academic only works for one department.

- Research papers (PAPER) are often authored by several academics, and of course an academic often writes several papers (AUTHOR).

- A research field (FIELD) often attracts many academics and an academic can have interest (INTEREST) in several research fields.

Download and run the SQL script academics.sql on Canvas (the Oracle section) to define and populate the Academics database in your Oracle account.

Write ONE SQL query for each of questions 3.1--3.8, and each component of an SQL statement must be on a separate line. Your query should not produce duplicates in output but use DISTINCT only if necessary. Include answers for Questions 3.9 and 3.10 as comments starting with "//" to make an SQL script executable in SQL Developer.

Questions:

List the names of all the institutions (instname) currently in the database.
How many academics are there in the department where deptnum=100. Return the total number.
List in alphabetical order the family name (famname) and given name (givename) of academics who has a title.
List papers whose title contains the words "Data" or "Software", in upper or lower cases. List the
panum and title of these papers.
Return the panum of papers written by the academic "Mark Yee".
Return the famname and givename of academics whose acnum is in the range [100..199] or whose givename starts with "S".
List the panum of papers having at least two authors.
List in alphabetical order the famname, givename of academics who work for institutions in Queensland. Note: the value of Queensland in the database is QLD or Qld.
The below query is intended to list the fieldnum and title of fields whose fieldnum is between 500 and 599 or whose title contains the word 'Data'. But it has errors. Give the correct SQL query.
select fieldnum, title from field
where fieldnum >=500 and <=599 or upper(title) like 'Data%';
Describe in English what the output will be from the SQL query below. Do not give a literal description of each line of the query.
select acnum, field.fieldnum, title, descrip from field, interest
where field.fieldnum=interest.fieldnum and trim(ID) like 'B.1._';

Question 4. ER model

TXT is a logistics and transport company. You are asked to design a database for scheduling their transport jobs. Requirements for the database are as follows:
- Each truck has a unique registration No, and is also described by type, and year made.
- Each customer of TXT has a unique ABN and is also described by the name, and contact phone number.
- Delivery jobs are identified by the unique job No, and are also described by "from" and "to" destinations, and estimated distance to travel.
- Drivers are identified by the unique employee ID, and are also described by first name, last name, address and phone number.
- A customer may book in several delivery jobs and a job is from only one customer. A job must have an "owning" customer.
- A driver can be assigned several delivery jobs but a job has only one driver. Some description about the job is also recorded. Each job has a Status (eg open, complete,etc) and this is maintained in the database.
- A job is assigned only one truck but a truck can be assigned to several jobs.

According to the given description, state any assumptions you make and construct an Entity Relationship (ER) diagram for the database. You must represent entities, relationships and their attributes, and all applicable constraints in your ER diagram. Explain any concepts in the description that cannot be expressed in the ER diagram.
- Your ER diagram must only use notations from the lecture notes and must not be hand drawn. ER diagrams using other notations will receive zero mark for this question.
- You can use the ER diagramming tool Dia, which can be downloaded from Canvas (The Tools section) and is also available as an App on mydesktop.rmit.edu.au. When exporting your ER diagram in Dia to a pdf file, you need to first set "page setup" to "Fit to 1 by 1" so that your pdf diagram scales properly. You can also use any other diagramming tool.

Some common errors in ER diagrams:
- If the scenario is set in say, a club, you do not need an entity for the club. The arrangement you depict in the ER diagram is the club.
- Entities do not connect to other entities with straight lines. Entities have relationships to/with other entities so there has to be a relationship between connected entities.
- Every entity must have a primary key.
- The names of all relationships and entities must be unique.
- There are no foreign keys in ER diagrams. They come about as part of mapping an ER model into a relational schema.

Question 5. Relational database design.

Designing an ER diagram is the first step for database design. It is critical that we understand what makes a good design. Figure 2 is an ER diagram designed for the Orders database about customers and their orders for a company. The semantics of attributes, entity sets and relationships is as expressed in their names. Each item in the database must have an "owning" salesman, whether or not it is being ordered.

Discuss any issues with the given ER diagram. Give your suggested ER diagram.

Map your suggested ER diagram to a relational database schema. For each relation schema in the mapped relational database schema, indicate the primary key (underline) and any foreign keys (asterisk).

1868_ER diagram.jpg

Figure 2: The Orders database ER diagram

A couple of clarifications on Assignment

Question 3: SQL comments. Some more notes further to Ian's post just now on using "--" to start each line of comments.

Your answer to Question 3.9 should be your corrected SQL query and should NOT be commented.

Your answer to Question 3.10 must be commented. The assignment spec has been updated and highlighted as follows:

Include answer for Question 3.10 as comments starting with "--" to make the whole SQL script file (.sql) executable (in SQL Developer and
other SQL client programs).

Verified Expert

The assignment have total 5 questions. The Question 1 is to define the weakness in the given database schema in first part and in the second part we need to provide the new database schema with primary key and foreign key defined in each entity. The question 2 is the sql script to create the tables as defined in question 1 part 2 and insert records in the created tables as provided in the assignment The question 3 is the sql script in which the various queries solved from part 3.1 to 3.10 as per the given ER diagram and database schema of the given tables The question 4 is the designing of the ER diagram for TXT - logistic and transport company as per the given business rules. The question 5 is to discuss about the given ER diagram in part 1 and creating of database schema as per the given ER diagram and specifying the primary key and foreign key in each entity.

Reference no: EM131934749

Questions Cloud

How you may be remembered as a manager and leader : What are 3 things you would do that could impact how you may be remembered as a manager and leader? How you would feel or react as an employee.
Explain the possible impacts of legalization : Explain the possible impacts of legalization on the market for currently illicit drugs. In your discussion, address the potential increase
How can you minimize statistics anxiety moving forward : Identify your sources of statistics anxiety as you begin this course. Reflect on your thoughts, feelings, and behaviors related to statistics.
Research an area of media that interests you : For this paper, you will research an area of Media that interests you. You will use two sources (minimum) to formulate your research and thesis.
Discuss any issues with the er diagram : ISYS1055 - Database Concepts - How many academics are there in the department where deptnum=100. Return the total number
What is the max fee you will pay for that option : A house is selling for $500,000 but you want to wait 6 months to buy it. What is the max fee you will pay for that option.
Analyze strengths and limitations of descriptive statistics : Discuss your previous experience with descriptive statistics. For example, you have probably encountered descriptive statistics in an undergraduate course.
Find the monetary base : Assume that the required reserve ratio is 0.05, currency in circulation is 400 billion, checkable deposits are 400 billion, and excess reserves are 60 billion.
Calculate the excess reserve ratio : Calculate the excess reserve ratio if checkable deposits are $900 million, total reserves are equal to $200 million

Reviews

len1934749

4/9/2018 4:50:04 AM

? Your submission is successful only when you receive an automatic confirmation email. Only this confirmation email can be used as receipt for your submission. ? Never leave submission to the last minute -- you may have difficulty uploading files. ? You can submit multiple times – a new submission will override any earlier submissions. Assessment 100 marks in total, which is 20% of the overall assessment for ISYS1057 and ISYS1055. The assessment components and weights are: Assignment 1 Assignment 2 Exam 20% 30% 50%

len1934749

4/9/2018 4:49:54 AM

This is an individual assignment. Plagiarism (oral, written or visual) is the presentation of the work, idea or creation of another person as if it is one’s own. Plagiarism is not acceptable and may result in a range of penalties. It is also a disciplinary offence for students to allow their work to be plagiarised by another student. Submission Final submission is due at 23:59 8 April Sunday. Submit via the assignment submission system on Canvas a .zip file named after your student number (e.g., S12345.zip) that contains files for answering each question: Q1 (.pdf), Q2 (SQL script, plain text), Q3 (SQL script, plain text), Q4 (.pdf) and Q5 (.pdf). The penalty for late submission is 10 marks per day or part day. After 4 days, assignments get 0 marks.

Write a Review

Database Management System Questions & Answers

  Functional dependencies present in the table

1. What errors prevent the table displayed above from being first normal form compliant? 2. List all the functional dependencies present in the table.

  Design and implement the database-best home real estate

you are to design and implement the database of Best Home real estate that you have modelled in assignment-1 and a series of SQL queries to reflect the business logic of it

  Explain onstraint and business rule represented in database

Describe the entities and attributes represented in the database. Describe the relationships among the entities in the database. Describe the constraints and business rules represented in the database.

  What were the consequences to adding 17 thamendment

what were the consequences (both positive and negative) to adding the 17th amendment to the Constitution? Argue whether or not the changes presented by this amendment were consistent with the intent of the Founding Fathers when they wrote the Cons..

  Create an er diagram that will facilitate development of cms

For this phase, you are required to create an ER Diagram that will facilitate the development of CMS's company-wide database.It should be created using ER Assistant and include entities and attributes, relationships, and accompanying notes

  Define relationships between aggregation and generalization

Determine the relationships between aggregation, generalization, and association. Explain how each type of association is depicted on a class diagram.

  Find a good explanation of cascading and use that

Cascading can be difficult to understand. Explain it in a way someone not versed in databases could understand. If you research and find a good explanation and use that, be sure to cite your source.

  Discuss what normalization is and why it is important

Discuss what normalization is and why it is important. Describe (in at least one paragraph) what ACID is and why it is important for databases.

  List the steps that are needed to pick a proper dbms

List the steps that are needed to pick a proper DBMS. Once the database is set up, describe the separation between users and database administrators. Explain which specific DBMS is most appropriate for your chosen organization, and why

  Diagram of the veterinary hospital registration system

Draw a Context Diagram of the Veterinary Hospital Registration system from the perspective of the personnel at the Veterinary Hospital - Draw a High-Level DFD of the Veterinary Hospital Registration system from the perspective of the personnel at t..

  Write down sql dml statements which address the given

write sql dml statements that address the following requirements 1 update the employees table and give all employees

  Provide a summary of normalizing database tables

Suppose that you are the database developer for a local college. The Chief Information Officer (CIO) has asked you to provide a summary of normalizing database tables that the IT staff will use in the upcoming training session. Describe the steps ..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd