mirror of
https://github.com/grocy/grocy.git
synced 2025-09-19 02:57:44 +00:00
7 lines
164 B
MySQL
7 lines
164 B
MySQL
![]() |
CREATE VIEW shopping_lists_view
|
||
|
AS
|
||
|
SELECT
|
||
|
*,
|
||
|
(SELECT IFNULL(COUNT(*), 0) FROM shopping_list WHERE shopping_list_id = sl.id) AS item_count
|
||
|
FROM shopping_lists sl;
|