CIW 1D0-541 Exam - Topic 5 Question 122 Discussion
Consider the Recreation relation in the exhibit. A data operation that changes one of the tuplesfor Student_ID 1003 must be performed. It is necessary to change one of the activities fromswimming to tennis. The Student_ID and Activity attributes make up the primary key for theRecreation relation. All related information must be altered, as well. Which SQL statement orstatements would best accomplish this?
C) UPDATE Recreation
SET Activity = 'Tennis', Activity_Fee = 100
WHERE Student_ID = 1003
AND Activity = 'Swimming';
A) UPDATE Recreation
SET Activity, Activity_Fee ('Tennis', 100)
WHERE Student_ID = 1003;
B) UPDATE TABLE Recreation
SET ACTIVITY = 'Tennis', Activity_Fee = 100
WHERE Student_ID = 1003
AND Activity = Swimming;
D) DELETE Activity
FROM Recreation
WHERE Student_ID = 1003;
INSERT INTO Recreation
VALUES (1003, 'Tennis', 100);
Laurel
25 days agoMalissa
30 days agoShoshana
1 month agoDiane
1 month agoRoslyn
2 months agoNatalya
2 months agoLeeann
2 months agoRia
2 months agoCasie
2 months agoMarylou
2 months agoBarney
3 months agoEvan
3 months ago