Skip to content

Commit

Permalink
Sample files
Browse files Browse the repository at this point in the history
  • Loading branch information
DJSteele committed Jul 20, 2016
1 parent 2d3a76f commit 23b42f5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion IBM DB2/Chapter 04/Listing 4.025.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ SET SCHEMA Item27Example;
SELECT L.LogUserID, L.Logger, L.LogLevel, L.LogMessage
FROM ProgramLogs AS L
WHERE L.LogDate BETWEEN CAST('2016-07-04' AS timestamp)
AND CAST('2016-07-04 23:59:59.999' AS timestamp)
AND CAST('2016-07-04 23:59:59.999' AS timestamp);

2 changes: 1 addition & 1 deletion Microsoft SQL Server/Chapter 04/Listing 4.025.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ GO
SELECT L.LogUserID, L.Logger, L.LogLevel, L.LogMessage
FROM ProgramLogs AS L
WHERE L.LogDate BETWEEN CONVERT(datetime, '2016-07-04', 120)
AND CONVERT(datetime, '2016-07-04 23:59:59.999', 120)
AND CONVERT(datetime, '2016-07-04 23:59:59.999', 120);

2 changes: 1 addition & 1 deletion MySQL/Chapter 04/Listing 4.025.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ USE Item27Example;
SELECT L.LogUserID, L.Logger, L.LogLevel, L.LogMessage
FROM ProgramLogs AS L
WHERE L.LogDate BETWEEN CONVERT('2016-07-04', datetime)
AND CONVERT('2016-07-04 23:59:59.999', datetime)
AND CONVERT('2016-07-04 23:59:59.999', datetime);

2 changes: 1 addition & 1 deletion Oracle/Chapter 04/Listing 4.025.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ ALTER SESSION SET CURRENT_SCHEMA = Item27Example;
SELECT L.LogUserID, L.Logger, L.LogLevel, L.LogMessage
FROM ProgramLogs L
WHERE L.LogDate BETWEEN DATE '2016-07-04'
AND TIMESTAMP '2016-07-04 23:59:59.999'
AND TIMESTAMP '2016-07-04 23:59:59.999';

2 changes: 1 addition & 1 deletion PostgreSQL/Chapter 04/Listing 4.025.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ SET search_path = Item27Example;
SELECT L.LogUserID, L.Logger, L.LogLevel, L.LogMessage
FROM ProgramLogs AS L
WHERE L.LogDate BETWEEN CAST('2016-07-04' AS timestamp)
AND CAST('2016-07-04 23:59:59.999' AS timestamp)
AND CAST('2016-07-04 23:59:59.999' AS timestamp);

0 comments on commit 23b42f5

Please sign in to comment.