Differentiate between aggregation and differentiation

Assignment Help PL-SQL Programming
Reference no: EM132738265

DBT 026 - Database management system

Question ONE
a. Define database management system
b. Name two main components of a relational schema
c. In relational model, attributes are said to be atomic. What is the meaning of atomic?
d. State the main purpose of enforcing different constraints in relational model
e. Give four main advantages of database management system
f. Differentiate between aggregation and differentiation.
g. What is a ternary relationship? Draw ER diagram to illustrate it.
h. Give four main differences between data and information.
i. What is data normalization and what is its main purpose.

Part B
Answer any two questions

Question Two
a. Design an entity relationship diagram of keeping track of information about votes taken in the Kenyan parliament during the last session to amend the interest rate Act. Draw an ER schema diagram for the above application. State clearly any assumption made.

b. A database is being constructed to keep track of the teams and games of a sport league. A team has a number of players, not all of whom participate in each game. It is desired to keep track of the players participating in each game for each team, the positions they played in that games, and the result of the games. Try to design an ER schema diagram for this application, stating any assumption you make. Choose your favorite sport (soccer, baseball, football ...)

Question Three
a. Consider the following relations that keeps track of student enrolment in courses and the books adopted for each course.
STUDENT (San, Name, Major, Bdate)
COURSE(Course#, Cname, Dept)
ENROLL(San, Course#, Quarter, Grade)
BOOK_ADOPTION(Course#, Quarter, Book_isbn)
TEXT(Book_isbn, Book-title, Publisher, Author)
Specify the foreign keys for this schema, stating any assumptions you make.

b. The database below stores students and courses.
STUDENT

 

Name

Student_number

class

Major

Smith

17

1

CS

Brown

8

2

CS

COURSE

Course-name

Course-number

Credit-hours

Department

Intro to computer science

CS1310

4

CS

Data structures

CS3929

4

CS

Discrete mathematics

MATH2410

3

MATH

Database

CS3380

3

CS

SECTION

Section-identifier

Course-number

semester

year

instructor

85

MATH210

Fall

07

King

92

CS1310

Fall

07

Anderson

102

CS3320

Spring

08

Knuth

112

MATH2410

Fall

08

Chang

119

CS1310

Fall

08

Anderson

135

CS3380

Fall

08

Stone

GRADE-REPORT

Student-number

Section-identifier

Grade

17

112

B

17

119

C

8

85

A

8

102

B

8

135

A

PREREQUISITE

Course-number

Prerequisite-number

CS3380

CS3320

CS3380

MATH2410

CS3320

CS1310

Write SQL update statements to do the following on the above database schema
a. Inserts a new student, < ‘Johnson', 25, 1, ‘Math'>, in the database.
b. Change the class student ‘Smith' to 2.
c. Insert new course < ‘Knowledge Engineering', ‘CS4390',3 ‘CS'>.
d. Delete the record for the student whose name is ‘Smith' and whose student number is 17.
c. Using a clearly labeled diagram, describe the three schema architecture or the levels of abstraction in data base management.

Question Four
Draw an E-R diagram for the following situation:

• This is a simplified model for reserving baseball tickets.

• There are teams, which are identified by the team name. Teams are also located in a city.

• Teams play each other in games, which occur on a particular date at a particular time. Games are identified by a game ID, and each game has exactly two teams that play in it.

• A game is played in exactly one stadium.

• A stadium is identified by its name, and is also located in a city.

• Stadiums have seats, which have a section number, a row number, and a seat number.

• Ticket holders reserve seats for a game. Ticket holders are identified by their name.

• Some ticket holders are students (students get discounts, but we are not including that in the model).
b) Using SQL, convert the following ER diagram to the relational model. Hint: You do not need CHECK constraints.

1865_figure.jpg

Question Five
a. Define domain constraint
b. List and explain five types of key used in relational models.
c. Explain the four main functions of a database management system
d. List five ways of maintaining data integrity

Reference no: EM132738265

Questions Cloud

Different types of gene mutations : Name and describe at least 4 different types of gene mutations
What amount should stallman report : Stallman Company took a physical inventory on December 31 and determined that goods costing $200,000 were on hand. Not included in the physical count were.
Advantages that bilateral symmetry provides organisms : List 2 advantages that bilateral symmetry provides organisms.
Draw a data flow diagram for an online registration system : Discuss at least five major tools and techniques that system analyst use at system design stage and Draw a data flow diagram for an online registration system
Differentiate between aggregation and differentiation : Differentiate between aggregation and differentiation - What is data normalization and what is its main purpose and Design an entity relationship diagram
Describe dna replication in detail : Describe DNA replication in detail. Male sue to include the steps, enzymes or celluar components used, starting materials, what results, and any special feature
Identify one challenge of living on land : Identify one challenge of living on land that was overcome by pollen.
How would the findings be reported : 1. What is the worst that can happen if the patient does not give a good clean-catch midstream urine sample?
Describe how a case tool can help to improve the quality : Describe how a CASE tool can help to improve the quality of a system being developed - Show the different phases of Systems Development Life Cycle explaining

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  List the course number for database system principles

List the course number for "Database System Principles". Set "Database System Principles" as the prerequisite for "Relational Database Systems". List all courses that have "Database System Principles" as prerequisite.

  Write a pl/sql solution that displays the registration

Write a PL/SQL solution that displays the registration and the maximum and the minimum miles travelled by a car during the rental period for all the bookings where the booking has been paid for.

  Combination of join and subqury or correlated

Formulate the following queries: (note, for some queries, you may need to use the combination of join and subqury or correlated subquery, together with group by and having clauses).

  Business transaction that involves multiple tables

Write a business transaction that involves multiple tables and implement it using PL/SQL. Use at least one Function or Procedure in your code. The transaction may retrieve data from the database and display the result, or it may insert/update data in..

  Create a table that includes a rotating schedule

M8A2 Short Paper: Evaluating a Database for Security Problems - Create a table that includes a rotating schedule for the 12 months of auditing

  What does sql mean and what can you do with sql

Now we're getting to some exciting stuff - SQL and queries! We have *touched on it* earlier and now this week it will be the primary focus of this discussion topic. So what is SQL? What does SQL mean and what can you do with SQL

  Write command to list all the employees in year

Write the command to list all the employees hired in 2003 and 2004. Sort the rows by the hire_date column in descending order.

  Use the prime minister database

Write SQL SELECT statements to retrieve the following information from the Prime Minister database.

  Write a script that creates and calls a stored procedure

Write a script that creates and calls a stored procedure named spInsertProduct that inserts a row into the Products table. This stored procedure should accept five parameters.

  Why is data visualisation important in business intelligence

Managing Data in Databases - Why is data visualisation important in Business Intelligence - Then you can download the software and run the .exe file to install

  Implementation using sql data definition language

In this project you will perform the physical design and implementation using SQL Data Definition Language (DDL) and proceed with populating the Mom and Pop Johnson Video Store database via Data Manipulation Language (DML) SQL commands.

  Display the output of the sql statement

Write a procedure that takes a car registration and returns the most recent date of rental and the maximum rental period for that car.  The procedure had the following formal parameters

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