diff --git a/C0de5/Programs_2.sql b/C0de5/Programs_2.sql index eaa1e68..1dbf5e7 100644 --- a/C0de5/Programs_2.sql +++ b/C0de5/Programs_2.sql @@ -39,3 +39,14 @@ The following SQL statement selects all products with a ProductName NOT BETWEEN SELECT * FROM Products WHERE ProductName NOT BETWEEN 'Carnarvon Tigers' AND 'Mozzarella di Giovanni' ORDER BY ProductName; + +/*BETWEEN Dates Example +The following SQL statement selects all orders with an OrderDate BETWEEN '01-July-1996' and '31-July-1996':/* + +SELECT * FROM Orders +WHERE OrderDate BETWEEN #01/07/1996# AND #31/07/1996#; + +/*OR:*/ + +SELECT * FROM Orders +WHERE OrderDate BETWEEN '1996-07-01' AND '1996-07-31';