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
10 months agoGolda
11 months agoQuentin
11 months agoTawna
11 months agoShawn
11 months agoCrista
11 months agoCarylon
11 months agoMeghan
11 months agoErick
12 months agoGregoria
12 months agoLemuel
12 months agoRomana
12 months ago