CIW 1D0-541 Exam - Topic 5 Question 70 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);
Nidia
9 months agoGolda
9 months agoQuentin
9 months agoTawna
9 months agoShawn
10 months agoCrista
10 months agoCarylon
10 months agoMeghan
10 months agoErick
10 months agoGregoria
10 months agoLemuel
10 months agoRomana
10 months ago