Errata
Submit your own errata for this product.
The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Corrected".
The following errata were submitted by our customers and approved as valid errors by the author or editor.
Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question
| Version | Location | Description | Submitted By | Corrected |
|---|---|---|---|---|
| Printed | Page xiv |
Next to chapter 5 Heading in TOC, "ver" should be "Ever" |
Anonymous | Nov 2007 |
| Printed | Page xxix 3rd paragraph |
"But we assume that if you're holding this book, you really want to |
Anonymous | Nov 2007 |
| Printed | Page xxxiv 3rd paragraph, line 5 |
Missing period after "tennis" |
Anonymous | Jun 2009 |
| Printed | Page 15, 16 3rd sentence, top of page |
"Come up some likely columns for each table" should be "come up with |
Anonymous | Nov 2007 |
| Printed | Page 19 In the annotation pointing to the comma in the third line of bolded code at the bottom of |
the page, "colums" should be "columns". |
Anonymous | May 2008 |
| Other Digital Version | 19 In the annotation pointing to the comma in the third line of bolded code at the bottom of |
the page, "colums" should be "columns". |
Anonymous | May 2008 |
| Printed | Page 25 in handwritten text at top of rightmost column |
The text reads "These two numbers show how many digits the database should expect in front the decimal, and how many after." This is incorrect. It should read: "These two numbers show how many digits the database should expect, and how many after the decimal." |
Anonymous | Nov 2007 |
| Printed | Page 25 Table. First row, last column and legend |
The description of the decimal type is wrong and the example number actually doesn't fit the datatype provided. |
Anonymous | Nov 2007 |
| Printed | Page 26 Table with solutions |
tax_rate must be defined as dec(5,3) to hold values from 0.000 to 100.000 (99.999 being the significant number here) to correctly hold all the percentages in the format shown in the example. |
Anonymous | Nov 2007 |
| Printed | Page 26 tax_rate row, Best Choice of Data Type column |
In http://oreilly.com/catalog/9780596526849/errata/9780596526849.1113 you state this needs to be DEC(5,3) for tax rates of 0.000 to 100.000. Obviously if you were to tax at 100.000, you'd need DEC(6,3). Note from the Author or Editor: |
Anonymous | Jun 2009 |
| Printed | Page 30 SQL Magnets Solution |
The CREATE DATABASE and USE DATABASE commands need to end in a semicolon |
Anonymous | Nov 2007 |
| Printed | Page 31 Under there are no Dumb Questions, answer to 3rd Question |
In the line "Since there is no data in the table yet, we can simply get rid of the old one away |
Anonymous | May 2008 |
| Other Digital Version | 31 Under there are no Dumb Questions, answer to 3rd Question |
In the line "Since there is no data in the table yet, we can simply get rid of the old one away |
Anonymous | May 2008 |
| Printed | Page 42 annotation in the middle of the page |
"We're using the the version..." should be "We're using the version..." |
Anonymous | Nov 2007 |
| Printed | Page 48 arrow pointing at DEC(3,2) |
This arrow should have a handwritten annotation that reads, "The total digits allowed are 3, with 1 before and 2 after the decimal." |
Anonymous | Nov 2007 |
| Printed | Page 53 1st paragraph |
"When it comes to databases, chances are you'll need to retrieve your |
Anonymous | Nov 2007 |
| Printed | Page 76 Solution on the lower portion of the page doesn't include possible answer: WHERE drink_name = 'Bull Frog'. |
Added an annotation to the bottom part of the page: "You could also have used the obvious query SELECT drink_name FROM easy_drinks WHERE drink_name = 'Bull Frog';" |
Anonymous | May 2008 |
| Other Digital Version | 76 Solution on the lower portion of the page doesn't include possible answer: WHERE drink_name = 'Bull Frog'. |
Added an annotation to the bottom part of the page: "You could also have used the obvious query SELECT drink_name FROM easy_drinks WHERE drink_name = 'Bull Frog';" |
Anonymous | May 2008 |
| Printed | Page 77 First bullet point: removed extra "when" |
|
Anonymous | May 2008 |
| Printed | Page 82 Solution to third query |
Solution to third query should be the following: |
Anonymous | Nov 2007 |
| Printed | Page 86 first sentence |
"So far we have only used the equal sign in our WHERE clause..." should be changed to "So far, we've mainly used the equal sign in our WHERE clause." |
Anonymous | Nov 2007 |
| Printed | Page 87 |
In the bottom left corner, => should be <= |
Anonymous | Nov 2007 |
| Printed | Page 89-90 bottom of the page -- last query |
The text, "...without using the names of the drinks in your query." should be added to the end of the last question on the page. |
Anonymous | Jun 2009 |
| Printed | Page 90 Bottom (last solution) |
SELECT drink_name, color, ice FROM drink_info |
Anonymous | May 2008 |
| Printed | Page 90 Bottom (last solution) |
Capitalization error |
Anonymous | May 2008 |
| Other Digital Version | 90 Bottom (last solution) |
SELECT drink_name, color, ice FROM drink_info |
Anonymous | May 2008 |
| Other Digital Version | 90 Bottom (last solution) |
Capitalization error |
Anonymous | May 2008 |
| Printed | Page 93 1st paragraph, 3rd sentence |
"So, instead of two the two separate queries..." should be "So, instead of the two separate queries..." |
Anonymous | Nov 2007 |
| Printed | Page 103-104 Second WHERE statement |
Wildcard character '_' stands for just one unknown character. Two letters are missing from Elsie's name 'El'sie. |
Anonymous | May 2008 |
| Other Digital Version | 103-104 Second WHERE statement |
Wildcard character '_' stands for just one unknown character. Two letters are missing from Elsie's name 'El'sie. |
Anonymous | May 2008 |
| Printed | Page 104 |
Sixth WHERE clause from the top should only have one semicolon at the |
Anonymous | Nov 2007 |
| Printed | Page 108 Middle example comment related to query |
The comment says, "We'll get drink names that begin with G and O, and all the letters in between." |
Anonymous | May 2008 |
| Other Digital Version | 108 Middle example comment related to query |
The comment says, "We'll get drink names that begin with G and O, and all the letters in between." |
Anonymous | May 2008 |
| Printed | Page 113,115 First solution incorrect |
Changed the solution to: |
Anonymous | May 2008 |
| Other Digital Version | 113,115 First solution incorrect |
Changed the solution to: |
Anonymous | May 2008 |
| Printed | Page 115 Bottom of page |
The solution: |
Anonymous | Nov 2007 |
| Printed | Page 115 First solution (the answer) is incorrect |
Changed to: WHERE main BETWEEN 'P' and 'T'; |
Anonymous | May 2008 |
| Other Digital Version | 115 First solution (the answer) is incorrect |
Changed to: WHERE main BETWEEN 'P' and 'T'; |
Anonymous | May 2008 |
| Printed | Page 117 |
Single quote needed before the word "cherry" in fifth set of |
Anonymous | Nov 2007 |
| Printed | Page 128 Answer to the last question. |
Some of the best ones involving joins, a topic covered later in this book. |
Anonymous | Nov 2007 |
| Printed | Page 130 Bottom of the page (last paragraph, in bold) |
Text currently reads: |
Anonymous | Nov 2007 |
| Printed | Page 133-134 Final question |
The final question on page 133 and 134 should be: |
Anonymous | Nov 2007 |
| Printed | Page 134 Answers to questions 4 and 6. |
The arrows for Delete statement 4 point to the 1st, 3rd, and 4th row. They should point to the first, 2nd, and 4th row. |
Anonymous | Nov 2007 |
| Printed | Page 134 Answer to question 6 |
This is an error made in the November 2007 reprint, not the original printing. |
Anonymous | May 2008 |
| Other Digital Version | 134 Answer to question 6 |
This is an error made in the November 2007 reprint, not the original printing. |
Anonymous | May 2008 |
| Printed | Page 135 bottom of page |
Bottom big code block should be changed to: |
Anonymous | Nov 2007 |
| Printed | Page 140 last_seen column |
The last_seen column on this page should be changed to: |
Anonymous | Nov 2007 |
| Printed | Page 144 SELECT statement |
Your SELECT throws an error. You need a star or column name before the FROM. |
Anonymous | Nov 2007 |
| Printed | Page 147 First Answer in "There are no dumb questions" |
The text currently reads: |
Anonymous | Nov 2007 |
| Printed | Page 149 UPDATE in action |
The text paragraph after the headline "UPDATE in action" does not correctly relate to the SQL statement right after that. |
Anonymous | May 2008 |
| Other Digital Version | 149 UPDATE in action |
The text paragraph after the headline "UPDATE in action" does not correctly relate to the SQL statement right after that. |
Anonymous | May 2008 |
| Printed | Page 156 1st paragraph |
The first sentence says "age column", but it should read "cost column". |
Anonymous | Nov 2007 |
| Printed | Page 156 First SQL query |
For this SQL query, the follow line should not end with a semicolon: |
Anonymous | Nov 2007 |
| Printed | Page 184 3rd paragraph |
Paragraph uses 'SHOW CREATE_TABLE', with an underscore in CREATE_TABLE, but example afterward uses 'SHOW CREATE TABLE', with no underscore. (Neither works with my version of postgres, so I don't know which is correct.) Note from the Author or Editor: |
georgeberger | Jun 2009 |
| Printed | Page 189-190 Third query on middle of page |
Although the third query on 189 and 190 may work with some versions of MySQL, it throws a warning and some versions won't fix it. It should be changed to: |
Anonymous | Nov 2007 |
| Printed | Page 190 Middle of page |
The third INSERT statement in Exercise 3 solution does not complete without error. |
Anonymous | May 2008 |
| Other Digital Version | 190 Middle of page |
The third INSERT statement in Exercise 3 solution does not complete without error. |
Anonymous | May 2008 |
| Printed | Page 201-202 header of 201, magnets at bottom of 201, magnets on 202 |
In MySQL 5.0.51b on my Mac, ordinals beyond FIRST fail, as does BEFORE. Note from the Author or Editor: |
Anonymous | Jun 2009 |
| Printed | Page 210 middle |
ADD PRIMARY KEY ('proj_id'); Should be without quotes, i.e. |
Anonymous | Nov 2007 |
| Printed | Page 212 Question in "There are no Dumb Questions" section |
Question reads, "What if I want ot..." but should be "What if I want to..." |
Anonymous | May 2008 |
| Other Digital Version | 212 Question in "There are no Dumb Questions" section |
Question reads, "What if I want ot..." but should be "What if I want to..." |
Anonymous | May 2008 |
| Printed | Page 212 First answer in There are no numb questions |
This page says "You can't actually change the column order once the table already has been created." Then on page 219, there is code that changes the column order in a table that already has been created. Note from the Author or Editor: |
Anonymous | Jun 2009 |
| Printed | Page 214 First line of SQL code in Exercise solution is incorrect. |
ALTER TABLE project_table |
Anonymous | May 2008 |
| Other Digital Version | 214 First line of SQL code in Exercise solution is incorrect. |
ALTER TABLE project_table |
Anonymous | May 2008 |
| Printed | Page 216 Sharpen your Pencil Solution - command |
It reads yet: |
Anonymous | May 2008 |
| Other Digital Version | 216 Sharpen your Pencil Solution - command |
It reads yet: |
Anonymous | May 2008 |
| Printed | Page 219 ALL OF IT |
Code would not complete without error |
Anonymous | May 2008 |
| Other Digital Version | 219 ALL OF IT |
Code would not complete without error |
Anonymous | May 2008 |
| Printed | Page 224 Top left corner title |
Title of page is "string functionsr". an r is extra. Note from the Author or Editor: |
Anonymous | Jun 2009 |
| Printed | Page 226 Bottom |
Point no. 4 says "Put the data we grabbed in step 2...... ". We haven't grabbed any data in step 2. Note from the Author or Editor: |
Anonymous | Jun 2009 |
| Printed | Page 230 Middle of page left side first paragraph |
The line reads "Let's see it in action on this example table. First time through, it takes the |
Anonymous | May 2008 |
| Other Digital Version | 230 Middle of page left side first paragraph |
The line reads "Let's see it in action on this example table. First time through, it takes the |
Anonymous | May 2008 |
| Printed | Page 248 Whole page |
In all cases, "movietable" should be changed to "movie_table" |
Anonymous | May 2008 |
| Other Digital Version | 248 Whole page |
In all cases, "movietable" should be changed to "movie_table" |
Anonymous | May 2008 |
| Printed | Page 258 Description of "Purchased dates", next-to-last line contains typo. |
"alwasy" was changed to "always" |
Anonymous | May 2008 |
| Other Digital Version | 258 Description of "Purchased dates", next-to-last line contains typo. |
"alwasy" was changed to "always" |
Anonymous | May 2008 |
| Printed | Page 275 In the paragraph beginning with the text "Remember our top 100 songs?", the second line was changed from |
"To see songs 20 through 30..." to "Suppose we wanted to see songs 20 through 29..." |
Anonymous | May 2008 |
| Other Digital Version | 275 In the paragraph beginning with the text "Remember our top 100 songs?", the second line was changed from |
"To see songs 20 through 30..." to "Suppose we wanted to see songs 20 through 29..." |
Anonymous | May 2008 |
| Printed | Page 277 In the crossword puzzle, the clue for 10 down should be: "Use this in a SELECT to return the total value of results rather rather than the results themselves." |
|
Anonymous | Nov 2007 |
| Printed | Page 279 Last line |
The last line on the answer page on 279 does not match the last line on page 272. It should read, "How am I? Somewhere in the middle." |
Anonymous | Nov 2007 |
| Printed | Page 307 SQL command in middle of page |
At the end of the CREATE TABLE command, the final closing parenthesis should come before the semicolon. |
Anonymous | Nov 2007 |
| Printed | Page 324 Shorthand notations |
Removed semicolons after the arrows. For instance, T.x -> ; T.y should be: T.x -> T.y |
Anonymous | May 2008 |
| Other Digital Version | 324 Shorthand notations |
Removed semicolons after the arrows. For instance, T.x -> ; T.y should be: T.x -> T.y |
Anonymous | May 2008 |
| Printed | Page 333 Final line of text |
Final line of text in the instructions should read: "Finally, add these new columns to the appropriate tables: phone, manager, cost, and weight." |
Anonymous | Nov 2007 |
| Printed | Page 333, 335 Sharpen Your Pencil Instructions |
Add another sentence to the end of the third paragraph of the Sharpen Your Pencil instructions that says, "You may have to create new toy_ids." |
Anonymous | Jun 2009 |
| Printed | Page 335 store_inventory table solution |
The values in the first column, toy_id, in the store_inventory table need to be changed to: |
Anonymous | Nov 2007 |
| Printed | Page 339 Thought Cloud |
"...writing a hundreds of queries" should be "...writing hundreds of queries" |
Anonymous | May 2008 |
| Other Digital Version | 339 Thought Cloud |
"...writing a hundreds of queries" should be "...writing hundreds of queries" |
Anonymous | May 2008 |
| Printed | Page 340 Note on "Foreign key" |
The note on "Foreign key" is wrong. The note printed describes third normal form instead of foreign key. The note should read, "A column in a table that references the primary key of another table." |
Anonymous | Nov 2007 |
| Printed | Page 349 2nd paragraph |
The second statement of the second paragraph on p. 349 is technically incorrect or explains incorrectly the usage of the SUBSTR function. |
Anonymous | May 2008 |
| Other Digital Version | 349 2nd paragraph |
The second statement of the second paragraph on p. 349 is technically incorrect or explains incorrectly the usage of the SUBSTR function. |
Anonymous | May 2008 |
| Printed | Page 350 In 'sharpen your pencil', in the hint text |
It says 'Rhe' instead of 'The' |
Anonymous | May 2008 |
| Other Digital Version | 350 In 'sharpen your pencil', in the hint text |
It says 'Rhe' instead of 'The' |
Anonymous | May 2008 |
| Printed | Page 355 Middle; Code returns error |
The 4th line of the big code query was changed from "profession varchar(20)" to mc_prof varchar(20) |
Anonymous | May 2008 |
| Other Digital Version | 355 Middle; Code returns error |
The 4th line of the big code query was changed from "profession varchar(20)" to mc_prof varchar(20) |
Anonymous | May 2008 |
| Printed | Page 356 SELECT proffession AS mcprof |
Should be mc_prof NOT mcprof |
Anonymous | Nov 2007 |
| Printed | Page 359 there are no dumb questions |
"?" missing at the end of question "so I'd used his......." Note from the Author or Editor: |
Anonymous | |
| Printed | Page 360, 362 Last line of query |
Last line of query should be changed from "ON mc.contact_id = p.prof_id;" to "ON mc.prof_id = p.prof_id;" |
Anonymous | Nov 2007 |
| Printed | Page 365 second block/question |
It says "Query that returns...... and status each person ......". "of is missing. Should be "Query that returns...... and status OF each person ......". Note from the Author or Editor: |
Anonymous | Jun 2009 |
| Other Digital Version | 370 The first and third queries on this page should use a NATURAL JOIN. The INNER JOIN will produce the wrong results. |
Changed "INNER" to "NATURAL" in first and third answers. |
Anonymous | May 2008 |
| Printed | Page 370 The first and third queries on this page should use a NATURAL JOIN. The INNER JOIN will produce the wrong results. |
Changed "INNER" to "NATURAL" in first and third answers. |
Anonymous | Jun 2009 |
| Other Digital Version | 378 Sharpen your pencil - Solution |
The annotation for the table states, "The interests column is empty after we run the command." This is incorrect. The interests column still has the value "fourth" in it. |
Anonymous | May 2008 |
| Printed | Page 378 Sharpen your pencil - Solution |
The annotation for the table states, "The interests column is empty after we run the command." This is incorrect. The interests column still has the value "fourth" in it. |
Anonymous | Jun 2009 |
| Other Digital Version | 381 Old tables in the ER diagram; |
contact_interest.interest_id should link up with interests.interest_id |
Anonymous | May 2008 |
| Printed | Page 381 Old tables in the ER diagram; |
contact_interest.interest_id should link up with interests.interest_id |
Anonymous | Jun 2009 |
| Printed | Page 384 Comment to the right of the page |
The comment on this page says: "These are just a few of the titles in Greg's job_current table.". But the Select statement selects from the job_listings. Note from the Author or Editor: |
Anonymous | Jun 2009 |
| Printed | Page 391-392 SQL's Rules of Order puzzle and solution |
The words 'FROM' and 'HAVING' are used in the solution, but are not among the list of words for the puzzle. |
Anonymous | Nov 2007 |
| Printed | Page 392 |
Second question refers to page 388, this should be page 387. |
Anonymous | Nov 2007 |
| Printed | Page 398 Query |
Query says "SELECT jc.salary ..... WHERE email = ''". It should be "SELECT jc.salary ..... WHERE mc.email = '........'". "mc." is missing. Note from the Author or Editor: |
Anonymous | Jun 2009 |
| Printed | Page 399 annotations for top query diagram |
Two of the annotations for the top query diagram should be changed to indicate that the subquery (inner query) is processed first. The top-left annotation should be changed from "The RDBMS processes this part first." to "The RDBMS processes this part second." And the bottom-right annotation should be changed from "This is processed second." to "This is processed first." |
Anonymous | Nov 2007 |
| Printed | Page 409 right hand side column of the "what's my purpose" column |
In the sentence "If two contact_id are true, a condition is met.", "true" should be "equal" or "identical"? Note from the Author or Editor: |
Anonymous | Jun 2009 |
| Printed | Page 428 First sentence in thought bubble |
"...use an outer join to to join a single..." should be |
Anonymous | Nov 2007 |
| Printed | Page 458 Under "He gets the status_id from the status table" |
The second annotation on this page should be changed from "And here's the status_id that corresponds to 'married'." to "And here's the status_id that corresponds to 'single'." |
Anonymous | Nov 2007 |
| Printed | Page 461 Sharpen your pencil section |
Column names while creating tables are column3 & column4. When adding CHECK constraint, column names are written as column_3 & column_4. TYPO. :) Note from the Author or Editor: |
Anonymous | Jun 2009 |
| Printed | Page 465 tech_writer_jobs CREATE VIEW statement |
There should be a ',' character after 'title' in the tech_writer_jobs CREATE VIEW statement. |
Anonymous | Nov 2007 |
| Other Digital Version | 472 SQL for creating view |
The AS keyword is in the wrong place. AS in the statement was moved after pb_quarters, to read: |
Anonymous | May 2008 |
| Printed | Page 472 SQL for creating view |
The AS keyword is in the wrong place. AS in the statement was moved after pb_quarters, to read: |
Anonymous | Jun 2009 |
| Printed | Page 490, 557 'UPDATABLE VIEWS' tooltip |
"...all NOT NULL rows of the base table..." should be |
Anonymous | Nov 2007 |
| Printed | Page 506 Leftmost bottom: Arrow going from root to sleepy. |
Written "trys". Typo. Should be "tries". |
Anonymous | Jun 2009 |
| Printed | Page 508 Solution to last problem |
Solution says "REVOKE GRANT INSERT(location).....". Should be "REVOKE INSERT(location)......". GRANT is extra. Wrong syntax, i am a little bit confused. Note from the Author or Editor: |
Anonymous | Jun 2009 |
| Printed | Page 518 GRANT statements at the bottom of the page |
"GRANT SELECT ON my_contacts * TO frank;" should be |
Anonymous | Nov 2007 |
| Printed | Page 520 First paragraph |
"...Greg's List to include to include local..." should be |
Anonymous | Nov 2007 |
| Printed | Page 528 second table |
Used the '+' sign for subtraction and division. Should be '-' and '/', respectively. |
Anonymous | Nov 2007 |
| Printed | Page 528 comparison operators table at the bottom of the page |
'Not less than' operator should be '!<' |
Anonymous | Nov 2007 |
| Printed | Page 528 middle of page |
the arrows from the annotation "these are only wildcards..." should point to the rows for _ and %. Note from the Author or Editor: |
Anonymous | Jun 2009 |
| Printed | Page 530 Last paragraph |
The last body text paragraph should read: "The query above will return Pizza House. We can also use >= and <= with ALL. The query below will give us both The Shack and Arthur's. We get the ratings greater than any in our set, as well as equal to the largest one in our set, which is 7:" |
Anonymous | Nov 2007 |
| Printed | Page 535 Last sentence |
The last sentence of the page is nearly identical to the last sentence of the preceding section ('Some situations where you might want to use CAST()'). |
Anonymous | Nov 2007 |
| Printed | Page 537 "what does it do?" for the Log(x) and Log(x,y) functions |
The "what does it do?" text for the Log(x) and Log(x,y) functions should be changed to "Returns the natural logarithm of x, or with two parameters returns the log of y for base x." |
Anonymous | Nov 2007 |
| Printed | Page 541 Second to last highlighted code line at the bottom of the page |
" lose($conn);" should be |
Anonymous | Nov 2007 |
