From 484bd4c075a29d2fda96c6c345e7b1eda00be7c9 Mon Sep 17 00:00:00 2001 From: daviddoji Date: Tue, 21 Apr 2026 09:40:42 +0200 Subject: [PATCH] automated commit by check50 [check50=True] --- answers.txt | 4 ++-- log.sql | 13 ++++++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/answers.txt b/answers.txt index 63a56f0..8789ee2 100644 --- a/answers.txt +++ b/answers.txt @@ -5,5 +5,5 @@ At what address did the Lost Letter end up?: 2 Finnigan Street At what type of address did the Devious Delivery end up?: Police station What were the contents of the Devious Delivery?: Duck debugger -What are the contents of the Forgotten Gift?: -Who has the Forgotten Gift?: +What are the contents of the Forgotten Gift?: Flowers +Who has the Forgotten Gift?: A warehouse in 950 Brannon Harris Way diff --git a/log.sql b/log.sql index 9f4a9c0..761e7a5 100644 --- a/log.sql +++ b/log.sql @@ -9,6 +9,8 @@ SELECT * FROM "addresses" WHERE "address" LIKE "2 Fin%Street"; -- Get the id and contents from the parcel send by sender to receiver SELECT * FROM "packages" WHERE "from_address_id" = 432 AND "to_address_id" = 854; + + -- *** The Devious Delivery *** -- Get the delivery address of the parcel with missing "from_address_id" SELECT * FROM "packages" WHERE "from_address_id" IS NULL; @@ -19,5 +21,14 @@ SELECT * FROM "scans" WHERE "package_id" = 5098; -- Get info about where the parcel ended up SELECT * FROM "addresses" WHERE "id" = 348; --- *** The Forgotten Gift *** + +-- *** The Forgotten Gift *** +-- Get the address id of sender ==> id 4983, type Residential +SELECT * FROM "addresses" WHERE "address" = "728 Maple Place"; + +-- Get package id and content ==> id 9523, contents Flowers +SELECT * FROM "packages" WHERE "to_address_id" = 4983; + +-- Get the address of who pick up the parcel ==> a warehouse in 950 Brannon Harris Way +SELECT * FROM "addresses" WHERE "id" = 7432;