Created
May 25, 2023 18:13
-
-
Save FromMeloriWithLove/46803ee88d3d5974333dd645753f89a3 to your computer and use it in GitHub Desktop.
28.04
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
1. | |
UPDATE Products_menu | |
SET date_of_delivery = GETDATE() | |
WHERE date_of_delivery = NULL | |
2. | |
DELETE FROM Products_menu | |
WHERE measurement < 100 AND price > 70 | |
3. | |
DELETE FROM Products_menu | |
WHERE category LIKE 'Кондитерские%' AND category LIKE 'Алкогольные%' | |
4. | |
DELETE FROM Products_menu | |
WHERE name LIKE '_____' | |
5. | |
DELETE FROM Products_menu | |
WHERE date_of_delivery < DATEADD(MONTH, -3, GETDATE()); | |
6. | |
DELETE FROM Products_menu | |
WHERE producer = NULL AND discount > 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment