• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

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

 
Ranch Hand
Posts: 34
5
  • Likes 2
  • Mark post as helpful
  • send pies
  • 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: 40354
819
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Agreed! Even though you aren't expected to read the SQL, it should still match. Added to the errata
 
I miss the old days when I would think up a sinister scheme for world domination and you would show a little emotional support. So just look at this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic