Requirements and draw an er diagram

Assignment Help Database Management System
Reference no: EM13738744

Question 1.

a)

Book:
- Likely data integrity constraints: isbn can not be null, each row (for a book) has a unique isbn, each publisher has one pubAddr.
- {isbn} is only candidate key and therefore the primary key.

Author:
- Likely data integrity constraints: isbn must be a valid isbn from Book; an author has one authBio
- {isbn, author} is the only candidate key and therefore the primary key.

b) Author.isbn is a foreign key referencing Book.isbn

c)

Book(isbn,...)

Author(isbn*, author, authorbio)

d) No. It violates the primary key entity integrity constraint.

e) Both relations have data redundancy and therefore hard to maintain data integrity. For example when the Pearson publisher moves to a new address, if one occurrence is not updated with the new address, there will be non-sensical data in the database.

Question 2.

A small bus company wants a simple database to track some aspects of its operation. They describe key elements of their requirements in the following points . Use the following information to understand their requirements and draw an ER diagram.

• The company has busses that can be identified by their registration number and its important to record the number of seat, the capacity of the motor and the last service date.

• Bus routes are known by their Route Number and all route numbers start with the capital letter "R". All routes have a start terminus and a end terminus and the distance of the route.

• The drivers details are name, their start date with the company, their licence number and its expiry date.

• Each bus driver is allocated a bus and only that driver will drive that bus. However, at any given time, some drivers will be on leave and some busses will be in for servicing.

• A bus is allocated to just one route.

• For OH&S reasons, the company runs different shifts (Morning, Afternoon, Night). To cover all the shifts, multiple busses are assigned to each route. A given bus on a particular route is allocated a shift.

• Several mechanics work for the company. There name and unique certificate number are required in the database. A bus can be worked on by any of the mechanics and all mechanics are qualified to service all buses.

Question 3.

a)

select givename, famname
from academic
where upper(title) like 'PROF%'
and deptnum = 125
order by famname, givename;

Marking Comments:

- May use a join query with depatment

- May use deptnum of 125 or 124 or 142 or any combination of these. (due to confusion with question).

- May use two test for title.

b)

Marking: must use Distinct.

select count(distinct instname)

from department

where upper(deptname) like '%COMPUTER%'

or upper(deptname) like '%COMPUTING%' ;

c)

select fieldnum, title

from field

where upper(title) like '%DATA%'

order by fieldnum desc;

d)

select count(*)

from department

where state is null;

e)

select deptnum, instname, state

from department

where state is not null

order by state,deptnum; 

Reference no: EM13738744

Questions Cloud

Why is it critical to organizations : Why is it critical to organizations. Why is operations management one of the top careers. Why are professional organizations important
Explain the relevant marketing science of customer behavior : Examine the relevant marketing science of customer behavior for your product. Develop your company's mission statement and company introduction
Increasing farm yields through innovations in chemistry : Describe the problems BASF faced in dealing with unpredictable demand, and respond to the following questions:
Important external environmental factor in the remote : Identifies and analyzes the most important external environmental factor in the remote, industry, and external operating environments
Requirements and draw an er diagram : Describe key elements of requirements in the points . Use the following information to understand their requirements and draw an ER diagram.
Motivate and inspire employees to effectively work together : Motivate and inspire employees to effectively work together. Show team members how to reach their goals.
What are the restrictions upon management : What are the restrictions upon management regarding interrogation and communications with employees during the organizing campaign
Explain what comic-con is : Write a two or three posting for your blog that explain what Comic-Con is and what attendees can expect to experience at the convention
External and internal forces : Question 1: Which of the following options properly identifies external and internal forces which drive change?

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