这个表。问题是*找到使用最多成分的比萨*
我知道答案很特别,但我不知道如何使用查询找到它。我尝试了很多不同的方法,但都没有奏效。提前致谢。
pizza | ingredient | amount
------------+------------+--------
margarita | cheese | 120
margarita | spice | 5
ham | ham | 150
ham | spice | 5
napolitana | anchovies | 100
napolitana | olives | 75
napolitana | spice | 10
hawaiian | ham | 100
hawaiian | pineapple | 100
hawaiian | spice | 5
cabanossi | cabanossi | 150
cabanossi | spice | 10
siciliano | onion | 50
siciliano | capsicum | 75
siciliano | olives | 50
siciliano | anchovies | 50
siciliano | spice | 15
americano | salami | 120
americano | pepperoni | 75
americano | spice | 10
mexicano | onion | 75
mexicano | capsicum | 75
mexicano | mushroom | 50
mexicano | chilli | 25
mexicano | spice | 20
seafood | seafood | 200
seafood | spice | 5
garlic | garlic | 25
garlic | spice | 10
vegetarian | onion | 50
vegetarian | capsicum | 50
vegetarian | mushroom | 50
vegetarian | peas | 50
vegetarian | tomato | 50
vegetarian | spice | 5
mushroom | mushroom | 100
mushroom | spice | 5
special | cheese | 25
special | tomato | 25
special | ham | 25
special | anchovies | 25
special | olives | 25
special | mushroom | 25
special | bacon | 25
special | egg | 25
special | pineapple | 25
special | cabanossi | 25
special | salami | 25
special | capsicum | 25
special | onion | 25
special | peas | 25
special | seafood | 25
special | spice | 10
stagiony | ham | 75
stagiony | mushroom | 50
stagiony | olives | 50
stagiony | anchovies | 25
stagiony | spice | 10
我只需要知道使用最多成分的披萨的名称。答案是从食谱组中选择比萨饼 count( )>=all (select count( ) from recipe group by Pizza);
输出是:
比萨
特别(1排)