我有两张桌子:
表 1:Food_I_Have_In_Fridge:
Food | Category
---------------
Apple | Fruit
Beef | Meat
Tomato| Veggie
Pork | Meat
Bacon | Meat
Orange| Fruit
Carrot| Veggie
表 2:Food_I_ate:
Date | Food
------------
Mon | Apple
Mon | Beef
Tues | Pork
Thurs| Orange
Sat | Tomato
我想生成按食物类别分类的我最后吃的东西的列表。输出如下所示:
Categ| Food
-----------
Meat | Pork
Fruit| Orange
Veggi| Tomato
我无法对行进行分组和合并,有什么建议吗?
谢谢!