Logical database design - conceptual database design

Assignment Help Database Management System
Reference no: EM13541839

Logical Database Design

1. For the ER diagram you created in assignment, the artefact of the conceptual database design, map the ER model into the relational model according to how it was designed in the ER diagram. You may however first refine or completely re-do your ER diagram if necessary, and you are allowed to make use of any part of our above displayed ER diagram skeleton to incorporate into your design in any way you like if you feel your original design is not in a state to be implemented later. While there can be a variety of acceptable designs, we here attach one simplistic rough sketch for the comparison purpose.

2. Consider a greatly simplified core recruitment system whose ER diagram is shown on the right.

Draw the corresponding GRD, exhibiting all the primary keys and foreign keys. For simplicity, no other attributes nor multiplicity constraints are required.

Are the tables in the GRD all in 3NF?

For a particular casual job, if none of the (registered) casual staff meet the requirements on the corresponding expertise, will the primary key or foreign key constraints in your GRD prevent the database system from assigning an unqualified casual to the job? Briefly explain why.

3. For all the relations that arise from this ("first-cut") ER diagram, list all those (in schemas) that are already in 3NF. If there are some relations that are not in 3NF yet, list them as well.

4. Draw the global relation diagram for your final, revised, and normalised database design, and keep all the relevant details there. It should be in a form similar to Figure 17.9 (page 516) of the textbook, but all the attributes should be kept there too. Include in the diagram all the primary keys, foreign keys, and the multiplicity constraints. Identify and discuss the potential data redundancies or anomalies that may still exist in your design, if any.

5. Create the database tables in SQL (runnable on the School's Microsoft SQL Server) for all the relations in your relation diagram, and enforce there all the relevant constraints including primary keys and foreign keys. Fill the tables with sufficient data - generally around 4 tuples or more per table, but should be sufficient to illustrate meaningfully the working of the general queries to be completed below. List the content of your tables with screenshots.

Screenshots of active windows (under Microsoft Windows) can be obtained by pressing CTRL-ALT-PRTSC keys together, see the example on the right. Your screenshots must be readable and contain your username as in the above example, and you may list several tables on a single screenshot as is the example on the right.

6. Write in SQL the commands to complete the following queries, and show your results in screenshots.

(a) Write a drop table statement so that i execution will delete all the tables you have created for this assignment. No partial mark will be given for this part, if the statement doesn't do the complete job

WARNING: Before you test this, you must first make sure that you have saved all the statements for the table creation and the record insertion etc in a separate SQL file saved outside the SQL Server.

This is to ensure that after the drop table statement deletes everything, you can re-create everything by running your saved SQL script. If
you are not sure, don't to this part.

(b) For all the casual staff, list their names and the corresponding mobile phone numbers.

(c) For all the casual staff who hold one or more qualifications, list their names and the corresponding qualifications.

(d) List who supervise which casual staff.

(e) For all casual staff, list their expertise (i.e. the subjects each staff is familiar with), the corresponding years of experience, and their self-rating on their competetiveness. Order the output in terms of the staff name, self rating and experience.

(f) For a given date, say 1 Oct 2014, list all the casual positions for that day that are still available, i.e. still under recruitment.

(g) For a given date, say 1 Oct 2014, list all the casual positions for that day, which of those positions is staffed by whom, which are yet to be staffed, the teaching timeslot and the venue. The output should be properly sorted.

(h) For all casual staff who have been recruited for a casual duty (of regular type), calculate the total number of hours worked or to be worked each week for each category of the positions, and the total number of weeks.

7. For each casual job, list all those casual staff who are suitable for the job, ignoring their availability for the timeslots. In other words, the suitability will not be affected by whether a casual can only work on certain days or he has already got a commitment for another casual job in the School.

8. For your final designed database, find a scenario in which data integrity can not be ensured by your current primary keys and foreign keys, nor by adding directly more of such keys. Write SQL statement/s that will determine if such a problem exists or not for any given state of the database.

9. A single plain-text file containing SQL statements for creating all the tables and making all the queries. The script should be executable on the School's Microsoft SQL Server, otherwise the corresponding marks in the above listed items will be deducted accordingly. Marks will be deducted for the corresponding questions if this SQL script in plain-text file is not submitted.

10. Each student must state explicitly who he or she once teamed up with if that person is not currently the group member for the submission, unless no shared work is involved. Students are not permitted to have shared work for this assignment with more than one person (the team member) including potential former team member, unless approved by the unit coordinator in writing.

Verified Expert

In this project we need to draw ERD and GRD diagram from the given scenario .We have to arrange the given data in a normalized tables so that user can easily fetch their required data from the database.For fetching data from the database we have create queries as per our requirement.In the database there are many tables which are related to each other which in shown in the ERD. For a particular casual job, for all registered staff we need to meet the requirement on the corresponding expertise,In these tables we indicate all primary key and foreign key.

Reference no: EM13541839

Questions Cloud

Evaluate the minimum area of the capacitor plates : A parallel-plate capacitor is constructed using a dielectric material whose dielectric constant is 2.00 and whose dielectric strength is 1.00 108 V/m. Find the minimum area of the capacitor plates
Explain why is concentrated sulfuric acid employed : Why is concentrated sulfuric acid employed in the nitration of methyl benzoate reaction. What is the electrophile that is produced by the reaction of sulfuric acid and nitric acid
Define why concentrated h2so4 : Explain why concentrated H2SO4, not concentrated HCl, is used in the nitration of methyl benzoate
Calculate the focal length of your magnifying glass : By holding a magnifying glass 29cm from your desk lamp, you can focus an image of the lamp's bulb on a wall 1.8m from the lamp. What is the focal length of your magnifying glass
Logical database design - conceptual database design : Draw the corresponding GRD, exhibiting all the primary keys and foreign keys. For simplicity, no other attributes nor multiplicity constraints are required.
Explain why is it important to maintain the reaction : Why is it important to maintain the reaction temperature low and the addition of nitric acid-sulfuric acid mixture carried out slowly
Calculate the current flowing in the square loop : A square loop of wire surrounds a solenoid. The side of the square is 0.1 m, while the radius of the solenoid is 0.025 m. What is the current flowing in the square loop
What is the acceleration of the falling mass : A 1.5 kg mass is held at rest on top of a frictionless and horizontal table. A light string loops over a pulley which is in the shape of a 10 cm radius solid disk which has a mass of 1.5 kg. What is the acceleration of the falling mass
Define mean according to the amount of pyrene and tio2 added : What does it this mean according to the amount of pyrene and TiO2 added , the surface coverage (mol/g) could be caculated so if i have pyrene/TiO2= 50mg how can i caculate the surface coverage. water 50ml. it is sufrace coverage= 2x10^-5 mol/g

Reviews

Write a Review

Database Management System Questions & Answers

  The packing list describes the ideal contents

The packing list describes the ideal contents of each package, but it is not always possible to include the ideal number of each item. Therefore, the actual items included in each package should be tracked. A package can contain many different ite..

  Question 1a explain the use of facts dimensions and

question 1a explain the use of facts dimensions and attributes in a star schema model.b in relation to a fact table

  1 prepare directories on your hard drive place a small text

1 prepare directories on your hard drive. place a small text file in one directory. use oracle package utlfile to read

  Describe the benefits and current trends of data

write a six to eight 6-8 page paper in which youquestion 1. provide an executive overview that addresses the

  Find bcnf decomposition of relation schema

Consider a relation schema r(A,B,C,D,E, F) and a set of functional dependencies {A BCD,BCDE,BD,DA}.  Determine whether or not (A,E, F) is in BCNF and justify your answer. If (A,E, F) is not in BCNF,find a BCNF decomposition of it.

  List course along with names of students from database table

List the courses (D-code and C-no), along with the names of the students who are currently taking them. List all the courses (D-code and C-no) that John (i.e., S-Name=''John'') got 'A' grade.

  What benefits could be gained from using a team to develop

describe the advantages and challenges of using a team to develop a microsoft access database. assignment guidelines

  Problem 1for the normal form game below solve for all nash

problem 1for the normal form game below solve for all nash equilibria and provide a justification for players

  Create a table for patients with information

Create a table (by your own imagination) which comprises the least 25 patients with next information (columns): Calculate average of Value1 for each Gender.

  Explain the problems associated with data redundancy

Assignment 5: Logical Design, Part II, Explain the problems associated with data redundancy as it pertains to effectively using information for reporting and analysis.

  Its a lead a project that will implement a new learning

its a lead a project that will implement a new learning management system for your university. you have two key tasks

  Explain relational database design and implementation

ISYS 224 Database Systems - Relational Database Design & Implementation

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