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
b. Changes to an A the grade assigned to the student with Id = 123456789 for the course CS305 taken in the fall of 2000
c. Returns the Id of all students who took CS305 in the fall of 2000

a. ```
DELETE
FROM Transcript
WHERE StudId = ’123456789’
AND CrsCode = ’CS305’ AND Semester = ’F2001’
```

b. ```
UPDATE Transcript
SET Grade = ’A’
WHERE StudId = ’123456789’
AND CrsCode = ’CS305’ AND Semester =’F2000’
```

c. ```
SELECT StudId
FROM Transcript
WHERE CrsCode = ’CS305’ AND Semester = ’F2000’
```

Computer Science & Information Technology

You might also like to view...

What is the gain of the typical WAP antenna?

A. 2 dB B. 10 dB C. 11 dB D. 54 dB

Computer Science & Information Technology

Which of the following statements accurately describes fingerprint recognition?

A. fingerprint recognition scanners are very expensive B. fingerprint recognition is easily deceived C. fingerprint recognition is unhealthy D. fingerprint recognition is rarely used

Computer Science & Information Technology