library_image

Errata: Sams Teach Yourself SQL in 10 Minutes (Fifth Edition)

Errata: Sams Teach Yourself SQL in 10 Minutes (Fifth Edition)


Original printing (306 pages, published December 20, 2019)

PageLocationCorrection
PageLocationCorrection
20First ANALYSIS block.Text states that the output “is shown in the following code”, bit it isn’t.
21Using Comments, first and second bullets.File name create.sql should be create.txt, and file name populate.sql should be populate.txt. In addition, the references to Appendix B should be Appendix A.
22
Second ANALYSIS block.
File name create.sql should be create.txt, and file name populate.sql should be populate.txt.
311st challenge: (cust_names)Should be: (cust_name)
43Output blockShould include column prod_id
53Tip, ‘LIKE b%@forta.com’Should be: LIKE ‘b%@forta.com’
62ANALYSIS block, 2nd bullet.
Should read: A string containing an open parenthesis, preceded by a space in the MySQL / MariaDB example.
72Table 8.2, Function column, first entry
Missing closing )

78Challenge 1, text “customer name (customer_name)”
Should be: customer name (cust_name)

88Challenge 2, text “of product item(prod_item)”
Should be: of products with an id (prod_id)

100Text after 2nd OUTPUT block, words “order number, 20007 and 20008”.
Should be: order numbers 20007 and 20008

101ANALYSIS block, both SELECT statements.
orders should be Orders, orderitems should be OrderItems

129Second INPUT block
Should be:
SELECT cust_name, cust_contact, cust_email
FROM Customers
WHERE cust_state IN (‘IL’,’IN’,’MI’) OR cust_name=’Fun4All’;
152INPUT block, text: CHAR(254)
Should be: CHAR(255)

1691st INPUT block
SQL statement should ideally be terminated with a semicolon (the ; character)

189Using Cursors section, text “using the OPEN CURSOR statement”
Should be: using the OPEN statement followed by the cursor name

1892nd INPUT, text “OPEN CURSOR CustCursor”
Should be: OPEN CustCursor

1892nd ANALYSIS block, text “When the OPEN CURSOR statement”
Should be: When the OPEN CustCursor Statement

191
INPUT block, text “DEALLOCATE CURSOR CustCursor”
Should be: DEALLOCATE CustCursor

195
INPUT block, text “ADD CONSTRAINT PRIMARY KEY”
Should be: ADD CONSTRAINT PK_vendors PRIMARY KEY

1961st INPUT block, text “ADD CONSTRAINT”
Should be: ADD CONSTRAINT FK_CustomerOrder

1982nd INPUT block, text “ADD CONSTRAINT CHECK”
Should be: ADD CONSTRAINT CHK_gender