diff --git a/answers.txt b/answers.txt index c2fe102..1e894cc 100644 --- a/answers.txt +++ b/answers.txt @@ -6,4 +6,4 @@ 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?: Flowers -Who has the Forgotten Gift?: 950 Brannon Harris Way +Who has the Forgotten Gift?: Mikel diff --git a/log.sql b/log.sql index 761e7a5..5f6053e 100644 --- a/log.sql +++ b/log.sql @@ -30,5 +30,14 @@ 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; +-- Confirm address of sender ==> 109 Tileston Street +SELECT * FROM "addresses" WHERE "id" = 9873; + +-- Who has the parcel +SELECT * FROM "scans" WHERE "package_id" = 9523; + -- Get the address of who pick up the parcel ==> a warehouse in 950 Brannon Harris Way SELECT * FROM "addresses" WHERE "id" = 7432; + +-- Get name of driver who pick up the parcel +SELECT * FROM "drivers" WHERE "id" = 17;