Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask PL-SQL Expert

Database Systems

Assignment 1: Relational Model and Integrity Constraints

Answer all questions with reference to the STUDENT, COURSE, and GRADE tables presented below for which the primary keys, foreign keys, and referential integrity constraints are specified.

STUDENT

Primary Key:     STUDENT_ID

STUDENT_ID

STUDENT_LNAME

STUDENT_FNAME

MAJOR

150-70-5879

Jones

Ray

CS

276-32-4380

Brown

John

MA

280-90-8766

Lee

Mae

CS

327-50-9090

Green

Bruce

CS

370-80-5050

Cooper

Bill

MA

430-76-6858

Woo

Dan

EE

430-80-9262

Bose

Sameer

EE

526-77-3568

Ryan

Pat

CS

527-90-5470

McGraw

Julia

CS

660-80-5497

Gonzales

Jose

CS

720-60-5000

Parker

Nancy

CS

824-58-5473

Smith

John

MA

900-90-9000

Bush

Bill

EE

925-05-6872

Liu

Tsui

EE

967-54-7112

Wang

John

MA

COURSE

Primary Key:     COURSE_NO

COURSE_NO

 COURSE_NAME

DEPT_CODE

CREDITS

CS100

Data Structures

CS

3

CS120

Algorithms

CS

3

CS200

Object Oriented Programming

CS

4

CS220

Database Management

CS

4

CS240

Data Communications

CS

4

CS300

Distributed Systems

CS

4

EE100

Circuit Analysis

EE

3

EE120

Communication Theory

EE

3

EE200

VLSI Design

EE

4

EE300

Packet Switching Networks

EE

4

MA100

Calculus

MA

3

MA200

Advanced Calculus

MA

4

MA220

Discrete Mathematics

MA

4

MA300

Number Theory

MA

4

GRADE

Primary Key:     COURSE_NO + STUDENT_ID

Foreign Keys:   COURSE_NO references COURSE ,  RESTRICT on DELETE

STUDENT_ID  references STUDENT , CASCADE on DELETE

COURSE_NO

STUDENT_ID

GRADE

CS100

150-70-5879

B

EE100

150-70-5879

B

EE100

276-32-4380

C

CS100

280-90-8766

A

EE100

280-90-8766

A

CS100

327-50-9090

B

CS100

430-76-6858

A

EE100

430-76-6858

B

MA220

660-80-5497

B

CS200

720-60-5000

B

CS200

824-58-5473

C

MA220

824-58-5473

B

EE200

824-58-5473

B

MA220

900-90-9000

B

CS200

925-05-6872

A

EE200

925-05-6872

A

CS200

967-54-7112

A

EE200

967-54-7112

B

1. Explain what happens when you try to delete the following records from the COURSE table:

(a)

COURSE_NO

COURSE_NAME

DEPT_CODE

CREDITS

CS120

Algorithms

CS

3

(b)

COURSE_NO

COURSE_NAME

DEPT_CODE

CREDITS

CS100

Data Structures

CS

3

2. Specify whether the following records can be added to the GRADE table.

Justify your answer in each case:

(a)

COURSE_NO

STUDENT_ID

GRADE

CS220

900-90-9000

B

(b)

COURSE_NO

STUDENT_ID

GRADE

CS100

 

B

(c)

COURSE_NO

STUDENT_ID

GRADE

CS100

980-70-5879

B

(d)

COURSE_NO

STUDENT_ID

GRADE

MA220

967-54-7112

B

2. Explain what happens when you try to delete the following records from the STUDENT table:

(a)

STUDENT_ID

STUDENT_LNAME

STUDENT_FNAME

MAJOR

150-70-5879

Jones

Ray

CS

(b)

STUDENT_ID

STUDENT_LNAME

STUDENT_FNAME

MAJOR

280-90-8766

Lee

Mae

CS

PL-SQL, Programming

  • Category:- PL-SQL
  • Reference No.:- M91599256
  • Price:- $60

Priced at Now at $60, Verified Solution

Have any Question?


Related Questions in PL-SQL

Purpose of the assessment with ulo mapping the purpose of

Purpose of the assessment (with ULO Mapping) The purpose of this assignment is to develop skills in managing data in databases and to gain understanding of data model development and implementation using a commercially a ...

For this assignment you will be provided a database backup

For this assignment, you will be provided a database backup for a database called FinanceDB. You will have to restore this backup to your own version of SQL Server. All of the questions in this assignment relate to the F ...

Continuing the project you have worked on in weeks 1-4 in

Continuing the project you have worked on in Weeks 1-4, in this final week, complete the following tasks: Refine your database and SQL statements by incorporating your instructor's feedback. Verify that the database comp ...

Complete the following tasksin microsoft access create the

Complete the following tasks: In Microsoft Access, create the database and tables that you identified in W3 Assignment 2. In Microsoft Word, write the SQL statements to create the database and tables. Write SQL statement ...

Assignment - queries functions and triggersaimthe aims of

Assignment - Queries, Functions and Triggers Aim The aims of this assignment are to: formulate SQL queries; populate an RDBMS with a real dataset, and analyse the data; design test data for testing SQL queries; create SQ ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As