8 lines
423 B
Text
8 lines
423 B
Text
# Find ingridents included in recipe
|
|
SELECT ingredient.designation AS Ingredient FROM RecipeContainsIngredients WHERE recipe.name = 'Tomato Basil Salad';
|
|
|
|
# get Ingredients where carbohydrates are lower than 40
|
|
SELECT designation FROM Ingredient WHERE carbohydrates <= 40;
|
|
|
|
# Find find user that ingredients
|
|
SELECT order.customer.first_name AS Name FROM OrderContainsIngredients WHERE ingredient.designation = 'Schalotte';
|