• Post author:
  • Post category:Blog
  • Reading time:2 mins read
  • Post last modified:June 12, 2024

What is the result of the query shown in the example?

UPDATE Review
SET Comment = ‘This is the new comment’
WHERE MovieId = 3456 AND AuthorName = ‘PuzoFan76’;

  • The comment made by PuzoFan76 for the movie with the ID 3456 will be modified to say, “This is a new comment.”
  • A new comment will be added to the movie with the ID 3456 for the author PuzoFan76.
  • All of the comments for the movie with the ID 3456 will be modified to say, “This is a new comment.”
  • A new row will be added to the table Review with the MovieId= 3456 and the AuthorName =PuzoFan76.
Answers Explanation & Hints:

The UPDATE command will modify an or multiple attributes in an existing record. You must use the INSERT command to add a new record to the table. If no WHERE clause is specified, the UPDATE command will update the attribute in all records in the table.

For more Questions and Answers:

7.5.2 Module 7 Quiz – Introduction to Structured Queries Exam Answers Full 100%

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments