Skip to content

Commit

Permalink
Done testing MySQL - bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TexanInParis committed Jun 8, 2016
1 parent c6e8968 commit d1d0fb6
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 8 deletions.
6 changes: 6 additions & 0 deletions IBM DB2/Chapter 09/Listing 9.014.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-- Ensure you've run Item55StructureAndData.sql
-- in the Sample Databases folder
-- in order to run this example.

SET SCHEMA Item55Example;

--NOTE: This is already created if you run the Item55StructureAndData in the sample database folder.

CREATE TABLE DimDate (
Expand Down
Binary file modified Listings.xlsx
Binary file not shown.
6 changes: 6 additions & 0 deletions Microsoft SQL Server/Chapter 09/Listing 9.014.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-- Ensure you've run Item55StructureAndData.sql in the
-- Sample Databases folder in order to run this example.

USE Item55Example;
GO

--NOTE: This is already created if you run the Item55StructureAndData in the sample database folder.

CREATE TABLE DimDate (
Expand Down
1 change: 1 addition & 0 deletions Microsoft SQL Server/Chapter 09/Listing 9.015.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
-- in order to run this example.

USE SalesOrdersSample;
GO

SELECT od.WeekDayNameLong AS OrderDateWeekDay,
o.OrderDate,
Expand Down
5 changes: 3 additions & 2 deletions Microsoft SQL Server/Chapter 09/Listing 9.016.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
-- Ensure you've run Item55StructureAndData.sql in the Sample Databases folder
-- in order to run this example.
-- Ensure you've run Item55StructureAndData.sql in the
-- Sample Databases folder in order to run this example.

USE Item55Example;
GO

CREATE INDEX DimDate_WeekDayLong
ON DimDate (DateValue, WeekdayNameLong);
5 changes: 3 additions & 2 deletions Microsoft SQL Server/Chapter 09/Listing 9.017.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
-- Ensure you've run Item55StructureAndData.sql in the Sample Databases folder
-- in order to run this example.
-- Ensure you've run Item55StructureAndData.sql in the
-- Sample Databases folder in order to run this example.

USE Item55Example;
GO

CREATE INDEX DimDate_WeekDayLong_MonthSeqNo
ON DimDate (DateValue, WeekdayNameLong, MonthSeqNo);
5 changes: 3 additions & 2 deletions Microsoft SQL Server/Chapter 09/Listing 9.018.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
-- Ensure you've run Item55StructureAndData.sql in the Sample Databases folder
-- in order to run this example.
-- Ensure you've run Item55StructureAndData.sql in the
-- Sample Databases folder in order to run this example.

USE Item55Example;
GO

CREATE INDEX DimDate_MonthSeqNo
ON DimDate (MonthSeqNo, DateValue, WeekdayNameLong);
1 change: 1 addition & 0 deletions Microsoft SQL Server/Chapter 09/Listing 9.019.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
-- in order to run this example.

USE SalesOrdersSample;
GO

CREATE INDEX Orders_OrderDate_ShipDate
ON Orders (OrderDate, ShipDate);
8 changes: 7 additions & 1 deletion MySQL/Chapter 09/Listing 9.014.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
--NOTE: This is already created if you run the Item55StructureAndData in the sample database folder.
-- Ensure you've run Item55StructureAndData.sql
-- in the Sample Databases folder
-- in order to run this example.

USE Item55Example;

-- NOTE: This is already created if you run the Item55StructureAndData in the sample database folder.

CREATE TABLE DimDate (
DateKey int NOT NULL,
Expand Down
2 changes: 1 addition & 1 deletion MySQL/Chapter 10/Listing 10.009.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

USE Item60Example;

SET @Nodepath '/1/2/5' COLLATE utf8_unicode_ci;
SET @Nodepath = '/1/2/5' COLLATE utf8_unicode_ci;

SELECT e.*
FROM Employees AS e
Expand Down
6 changes: 6 additions & 0 deletions Oracle/Chapter 09/Listing 9.014.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-- Ensure you've run Item55StructureAndData.sql
-- in the Sample Databases folder
-- in order to run this example.

ALTER SESSION SET CURRENT_SCHEMA = Item55Example;

--NOTE: This is already created if you run the Item55StructureAndData in the sample database folder.

CREATE TABLE DimDate (
Expand Down
5 changes: 5 additions & 0 deletions PostgreSQL/Chapter 09/Listing 9.014.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-- Ensure you've run Item55StructureAndData.sql in the Sample Databases folder
-- in order to run this example.

SET search_path = Item55Example;

--NOTE: This is already created if you run the Item55StructureAndData in the sample database folder.

CREATE TABLE DimDate (
Expand Down

0 comments on commit d1d0fb6

Please sign in to comment.