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

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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