• Post Reply Bookmark Topic Watch Topic
  • New Topic

Mistake: OCP Java SE 8 Programmer II Study Guide (Sybex)  RSS feed

 
Hleb Bandarenka
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chapter 10. Page 509
I found that when is created the SPECIES table we use

this is equivalent to DECIMAL(5,0), so we save only Integers
Consequently when we execute

we save only 7 in the column

To save number 7.5 we at least need use DECIMAL(1,1) when create the table
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 36864
481
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hleb,
You're right! I never tried to use the number of acres so hadn't noticed that. Thanks for pointing it out!

I've updated this on our online version of how to load the database.

ps - welcome to CodeRanch!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!