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

  If those were for me wed keep them all in two to three

if those were for me wed keep them all in two to three minutes longer he says. but thats not my call-its the

  Produce a set of relations

An ER diagram for the system. Show all entities, relationships, cardinalities and optionalities. Also, include all intersection entities. You must use the Finkelstein methodology as per the study book and tutorials.

  Implement a program to query and update the text database

Implement a program to query and update the text database for a library using a client/server model allowing multiple clients safe access to the database, and using a producer-consumer model to control the inventory of each item.

  Access values through queries to databases

However, the only way you can access values is through queries to the databases. In single query, you can specify value k to one of two databases.

  How to create a biological database based on viruses

How to decide which attribute should be there in the table and schema? How to identify the primary keys, foreign keys, domain, E-R diagram and 20 Queries on the same database.

  Prepare a use case diagram for the case study

Case Study based on an Interview contained in a separate document (Please see the details in page 221 of your text book). Carefully read this case study. You are required to answer the following questions based on the Case Study.

  List the all facts and dimensions of the enterprise

Choose a model (star, snowflake or constellation) and discuss why it is an appropriate choice.

  Create a crow''s foot erd using a specialization hierarchy

Given the following business scenario, create a Crow's Foot ERD using a specialization hierarchy if appropriate. Tiny Hospital keeps information on patients and hospital rooms

  Design premiere products databas-shows relationship

Indicate changes you require to make to design of Premiere Products database to support following situation: There is no relationship between customers and sales reps.

  Design an entity-relationship model of the problem

Design an entity-relationship model of the problem, convert the model into a relational model, and assess the normal form of each schema.

  Process the weather data with data mining techniques

Process the weather data for Auckland and Invercargill in the given dataset (monthly readings) and-focusing in particular on temperature related data-experiment with various data mining techniques

  Describe a dbms and its functions

Describe a DBMS and its functions. Name some of the popular DBMS software and you should search the Internet for the updated DBMS technology.

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