• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Sybex 816 (Kindle) Chapter 10., Review Questions, question 8., p. 859

 
Ranch Hand
Posts: 34
5
  • Likes 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the 8th question it is written:

Suppose that the table animal has five rows and the following SQL statement updates all of them. (...)


In the code snippet for the question the 2nd line is:

The table name in the SQL String does not comply with the table name in the content of the question.
If so, it is difficult to assume that the statement updates all of the rows.
"A SQLException is thrown" seems like the correct answer (ignoring the assumption ("the statement updates all of them") and the information that understanding the SQL statements is out of the scope of the exam).
 
author & internet detective
Posts: 41775
887
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Agreed! Even though you aren't expected to read the SQL, it should still match. Added to the errata
 
It's fun to be me, and still legal in 9 states! Wanna see my tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic