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

  Translation from erd to the relational model

Complete (i.e., reverse engineering) ER diagram below such that 4 relation schemas above are exactly result of a translation from the ERD to the relational model.

  Product in traditional costing system - bullie manufacturing

Determine the manufacturing overhead cost per unit of each of the company's two products under the traditional costing system.

  Case study requirement and analysis disciplines through

case study requirement and analysis disciplines through analysis of a simple case study and to express the results

  Find average number of books borrowed from database table

Find the average number of books borrowed per member. Take into account that if a member does not borrow any books, then that member does not appear in the borrowed relation at all.

  Explain thoughts on database design process

Explain thoughts on database design process this far. You have learned about first three phases of process: defining mission statement and mission objectives, analyzing current database, and creating data structures.

  Draw context diagram that represent supply ordering system

Draw a context diagram that represents a Supply Ordering System (SOS).

  List all pair of products names which are in same city

List the names of agents that placed an order for customer C003 or customer C006. List all pair of products names that are in the same city, along with their city name.

  Design a database schema

Design a Database schema

  Sales transaction in retail clothing

Examine different sales transactions. Design a context diagram and a level-0 diagram that represent the selling system at the store.

  Complete information-level design for set of requirements

A database at a college is required to support the following requirements. Complete the information-level design for this set of requirements. Determine any constraints you need that are not stated in the problem.

  Using join sort results alphabetically by customer name

Using Join, list the items each customer ordered where the billing_price was lower than the item price (item, billing_price, and price). Sort the results alphabetically by customer name.

  Same name to attributes which are in different tables

What about giving same name to attributes which are in different tables but are not same? For instance, "Description" in both a Course table and a Classroom table.

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