-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59df0ee
commit d46e466
Showing
6 changed files
with
85 additions
and
40 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- Modify "orders" table | ||
ALTER TABLE `orders` ADD COLUMN `comment` varchar(100) NULL; |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-- Modify "products" table | ||
ALTER TABLE `products` ADD COLUMN `price` decimal(10,2) NOT NULL; | ||
-- Create "price_avgs" view | ||
CREATE VIEW `price_avgs` ( | ||
`category_name`, | ||
`avg_price` | ||
) AS select `categories`.`name` AS `category_name`,avg(`products`.`price`) AS `avg_price` from (`categories` join `products` on((`categories`.`category_id` = `products`.`category_id`))) group by `categories`.`name`; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
h1:cpN5ezSWhHJMZt+LGqMZ/VrNhdnh7eKGE2pQmNS80DQ= | ||
h1:etbjVQ/PE0Uj3NcNPgutwiz2nQIsQUgfLUcYzq8sqAg= | ||
20240307092728.sql h1:BEXRAbglZQlUqXHRy4fvsEVsu7FlSfKcJ/JAkH2XgMY= | ||
20240307104354_add_warehouses.sql h1:heT56DSu6Ka8TJo8K4F92rVxinZmt+7tbMX+y3vaJKo= | ||
20240319121112.sql h1:0eBtqy178hkD2NHK31j5TCqopjYx8it9GiCK70U0nig= | ||
20240324132903.sql h1:pBF+aEreDTVHB02hYA4RGPNHaak9ioUMYtMm698AtDA= |
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