Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam C2090-616 All Questions

View all questions & answers for the C2090-616 exam

Exam C2090-616 topic 1 question 41 discussion

Actual exam question from IBM's C2090-616
Question #: 41
Topic #: 1
[All C2090-616 Questions]

Which of the following SQL statements will update columns C1 to DB2 and C2 to 11 if C3 is 2016?

  • A. UPDATE t1 c1 = "˜DB2, c2' = 11
  • B. UPDATE t1 SET c1 = "˜DB2, c2' = 11
  • C. UPDATE t1 c1 = "˜DB2', c2 = 11 WHERE c3 = 2016
  • D. UPDATE t1 SET (c1, c2) = ("˜DB2', 11) = WHERE c3 = 2016
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
JamesBond
3 years, 4 months ago
Correct answer is no one, the best is D as there is typo error on that. [db2inst2@vbox1 ~]$ db2 "UPDATE t1 SET (c1, c2) = ('~DB2', 11) = WHERE c3 = 2016" DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor command. During SQL processing it returned: SQL0104N An unexpected token "c3" was found following "('~DB2', 11) = WHERE". Expected tokens may include: "<space>". SQLSTATE=42601 [db2inst2@vbox1 ~]$ db2 "UPDATE t1 SET (c1, c2) = ('~DB2', 11) WHERE c3 = 2016" DB20000I The SQL command completed successfully.
upvoted 1 times
...
db2tester
5 years, 1 month ago
Answer C is syntaxically wrong. The correct answer is D.
upvoted 3 times
zarko
4 years, 1 month ago
it is but has two typos, correct line is: UPDATE t1 SET (c1, c2) = ('DB2', 11) WHERE c3 = 2016
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...