From 7f1c63561a04d5fce821b6d28d14bcddbb9d165c Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Fri, 9 Feb 2024 00:32:07 +0100 Subject: [PATCH] add sample queeries --- data/newqueerys.surrealql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 data/newqueerys.surrealql diff --git a/data/newqueerys.surrealql b/data/newqueerys.surrealql new file mode 100644 index 0000000..85c2663 --- /dev/null +++ b/data/newqueerys.surrealql @@ -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';