Skip to content
Snippets Groups Projects
Commit a64ff820 authored by Sorrel Harriet's avatar Sorrel Harriet
Browse files

amend

parent def419ea
Branches
No related merge requests found
......@@ -25,4 +25,12 @@ INSERT INTO DrinkOption VALUES
INSERT INTO Selection VALUES
(NULL, 'A', '1'),
(NULL, 'A', '2'),
(NULL, 'D', '0');
SELECT drink_name, code, price FROM DrinkOption ORDER BY code;
SELECT do.drink_name, COUNT(s.id) FROM DrinkOption do
INNER JOIN Selection s
ON s.option_code=do.code
GROUP BY do.drink_name;
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment