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

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

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