Cashback Offer from 12th to 18th November 2021. Get Flat 10% Cashback credited to your account for a minimum transaction of $80. Post Your Question Today!

Question DetailsNormal
$ 20.00

TEST BANK FOR DATABASE SYSTEMS AN APPLICATION-ORIENTED APPROACH 2ND ED BY Michael Kifer, Arthur

Question posted by
Online Tutor Profile
request

Design the following two tables (in addition to that in Figure 2.1) that might be used
in the Student Registration System. Note that the same student Id might appear in
many rows of each of these tables.
a. A table implementing the relation CoursesRegisteredFor, relating a student’s
Id and the identifying numbers of the courses for which she is registered
Solution:
Id CrsCode
111111111 CSE515
111111111 CSE505
111111111 CSE532
666666666 CSE532
666666666 CSE541
111223344 CSE504
987654321 CSE504
023456789 CSE515
123454321 CSE505
b. A table implementing the relation CoursesTaken, relating a student’s Id, the
identifying numbers of the courses he has taken, and the grade received in each
course
Solution:
Id CrsCode Grade
111111111 CSE501 A
6 CHAPTER 2 The Big Picture
111111111 CSE533 B+
666666666 CSE505 A-
666666666 CSE541 C
111223344 CSE533 B-
987654321 CSE515 B+
023456789 CSE505 A
123454321 CSE532 B+
Specify the predicate corresponding to each of these tables.
Solution:
For the first table: Student X is registered for Course Y
For the second table: Student X has taken Course Y and gotten Grade Z
2.2 Write an SQL statement that
a. Returns the Ids of all seniors in the table Student
Solution:
SELECT S.Id
FROM Student
WHERE S.Status = ’senior’
b. Deletes all seniors from Student
Solution:
DELETE
FROM Student S
WHERE S.Status = ’senior’
c. Promotes all juniors in the table Student to seniors
Solution:
UPDATE Student S
SET S.Status = ’senior’
WHERE S.Status = ’junior’
2.3 Write an SQL statement that creates the Transcript table.
Solution:
Exercises 7
CREATE TABLE Transcript (
StudId INTEGER,
CrsCode CHAR(6),
Semester CHAR(6),
Grade CHAR(1),
PRIMARY KEY (StudId, CrsCode, Semester) )
2.4 Using the Transcript table, write an SQL statement that
a. Deregisters the student with Id = 123456789 from the course CS305 for the fall of
2001
Solution:
DELETE
FROM Transcript
WHERE StudId = ’123456789’
AND CrsCode = ’CS305’ AND Semester = ’F2001’
b. Changes to an A the grade assigned to the student with Id = 123456789 for the
course CS305 taken in the fall of 2000
Solution:
UPDATE Transcript
SET Grade = ’A’
WHERE StudId = ’123456789’
AND CrsCode = ’CS305’ AND Semester =’F2000’
c. Returns the Id of all students who took CS305 in the fall of 2000
Solution:
SELECT StudId
FROM Transcript
WHERE CrsCode = ’CS305’ AND Semester = ’F2000’
2.5 Given the relation Married that consists of tuples of the form a, b, w here a is the
husband and b is the wife, the relation Brother that has tuples of the form c, d,
where c is the brother of d, and the relation Sibling, which has tuples of the form
e, f , w here e and f are siblings, use SQL to define the relation Brother-In-Law,
where tuples have the form x, y with x being the brother-in-lawof y.
(Hint: This query can be represented as a union of three separate SQL queries. SQL
provides the operator UNION to achieve this effect.)
8 CHAPTER 2 The Big Picture
Solution:
The first SQL query, below, describes the situation where someone is the brother of the
wife and hence the brother-in-law

Available Answer
$ 20.00

[Solved] TEST BANK FOR DATABASE SYSTEMS AN APPLICATION-ORIENTED APPROACH 2ND ED BY Michael Kifer, Arthur

  • This solution is not purchased yet.
  • Submitted On 12 Nov, 2021 05:54:56
Answer posted by
Online Tutor Profile
solution
Design the following two tables (in addition to that in Figure 2.1) that might be used in the Student Registration System. Note that the same student Id might appear in many rows of each of these tables. a. A table implementing the relation CoursesRegisteredFor, relating a student’s Id and the identifying numbers of the courses for which she is registered Solution: Id CrsCode 111111111 CSE515 111111111 CSE505 111111111 CSE532 666666666 CSE532 666666666 CSE541 111223344 CSE504 987654321 CSE504 023456789 CSE515 123454321 CSE505 b. A table implementing the relation CoursesTaken, relating a student’s Id, the identifying numbers of the courses he has taken, and the grade received in each course Solution: Id CrsCode Grade 111111111 CSE501 A 6 CHAPTER 2 The Big Picture ...
Buy now to view the complete solution
Other Similar Questions
User Profile
NUMBE...

Health and Health Care Delivery in Canada 2nd Edition Test Bank

Chapter 1: The History of Health Care in Canada MULTIPLE CHOICE 1. When and where was Canada’s first medical school established? a. Saskatoon, in 1868 b. Ottawa, in 1867 c. Montreal, in 1825 d. Kingston, in 1855 ANS: C...
User Profile
Acade...

ATI Pharmacology Proctored Exam Test Bank

ATI Pharmacology Proctored Exam Test Bank ATI Pharmacology Proctored Exam Test Bank ATI Pharmacology Proctored Exam Test Bank...
User Profile
joe96

Nr 508 test bank pharmacology.

Nr 508 test bank pharmacology.Nr 508 test bank pharmacology.Nr 508 test bank pharmacology....
User Profile
joe96

NUR618 Pharm master test bank 2021

NUR618 Pharm master test bank LATEST 2021 NUR618 Pharm master test bank LATEST 2021 NUR618 Pharm master test bank LATEST 2021 NUR618 Pharm master test bank LATEST 2021 ...
User Profile
joe96

NSG 6005 Adv Pharm FINAL EXAM TEST BANK QUESTIONS AND ANSWERS

NSG 6005 Adv Pharm FINAL EXAM TEST BANK QUESTIONS AND ANSWERS/NSG 6005 Adv Pharm FINAL EXAM TEST BANK QUESTIONS AND ANSWERS...

The benefits of buying study notes from CourseMerit

homeworkhelptime
Assurance Of Timely Delivery
We value your patience, and to ensure you always receive your homework help within the promised time, our dedicated team of tutors begins their work as soon as the request arrives.
tutoring
Best Price In The Market
All the services that are available on our page cost only a nominal amount of money. In fact, the prices are lower than the industry standards. You can always expect value for money from us.
tutorsupport
Uninterrupted 24/7 Support
Our customer support wing remains online 24x7 to provide you seamless assistance. Also, when you post a query or a request here, you can expect an immediate response from our side.
closebutton

$ 629.35