Created
January 21, 2024 19:57
-
-
Save ImShizer/56a6e8203050065026afa4199a294fb4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE Store | |
SELECT * | |
FROM Product | |
WHERE DATEDIFF(M, date_of_delivery, GETDATE()) <= 1 | |
SELECT name, price | |
FROM Product | |
WHERE producer = 'Roshen' AND category = 'Кондитерские изделия' | |
SELECT * | |
FROM Product | |
WHERE name LIKE 'К%' AND category LIKE '%А%' | |
SELECT * | |
FROM Product | |
WHERE name LIKE 'В%' AND name LIKE '%Л' | |
SELECT * | |
FROM Product | |
WHERE price < 50 AND DATEDIFF(D, 2023-10-01, GETDATE()) <= DATEDIFF(D, 2023-10-01, date_of_delivery) | |
SELECT * | |
FROM Product | |
WHERE category = 'Безалкогольные напитки' AND quantity > 100 | |
DELETE | |
FROM Product | |
WHERE LEN(name) < 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment