add sample queeries
This commit is contained in:
parent
898d24b680
commit
7f1c63561a
1 changed files with 8 additions and 0 deletions
8
data/newqueerys.surrealql
Normal file
8
data/newqueerys.surrealql
Normal file
|
@ -0,0 +1,8 @@
|
|||
# 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';
|
Loading…
Reference in a new issue