sqlite - find recipes that can be made from a set of ingredients
问题 Right now I am using sqlite within a ios application, and I want to be able to search for recipes that can be made from a list of ingredients (ie recipes such that are a subset of the provided ingredients) For example: Recipe 1: A B C Recipe 2: A B Recipe 3: C D Recipe 4: A Recipe 5: E Query for ingredients A B C returns recipes {1, 2, 4} Query for ingredients A B returns recipes {2, 4} Query for ingredients D returns {} Currently what I have set up is Table Items name text primary key Table