automated commit by check50 [check50=True]
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
At what type of address did the Lost Letter end up?: Residential
|
At what type of address did the Lost Letter end up?: Residential
|
||||||
At what address did the Lost Letter end up?: 2 Finnigan Street
|
At what address did the Lost Letter end up?: 2 Finnigan Street
|
||||||
|
|
||||||
At what type of address did the Devious Delivery end up?:
|
At what type of address did the Devious Delivery end up?: Residential
|
||||||
What were the contents of the Devious Delivery?:
|
What were the contents of the Devious Delivery?: Duck debugger
|
||||||
|
|
||||||
What are the contents of the Forgotten Gift?:
|
What are the contents of the Forgotten Gift?:
|
||||||
Who has the Forgotten Gift?:
|
Who has the Forgotten Gift?:
|
||||||
|
|||||||
11
log.sql
11
log.sql
@@ -1,15 +1,20 @@
|
|||||||
|
|
||||||
-- *** The Lost Letter ***
|
-- *** The Lost Letter ***
|
||||||
-- Get the address id of sender ==> id 432, type Residential
|
-- Get the address id of sender ==> id 432, type Residential
|
||||||
SELECT * from "addresses" WHERE "address" = "900 Somerville Avenue";
|
SELECT * FROM "addresses" WHERE "address" = "900 Somerville Avenue";
|
||||||
|
|
||||||
-- Get the address id of receiver ==> id 854, type Residential
|
-- Get the address id of receiver ==> id 854, type Residential
|
||||||
SELECT * from "addresses" WHERE "address" LIKE "2 Fin%Street";
|
SELECT * FROM "addresses" WHERE "address" LIKE "2 Fin%Street";
|
||||||
|
|
||||||
-- Get the id and contents from the parcel send by sender to receiver
|
-- 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;
|
SELECT * FROM "packages" WHERE "from_address_id" = 432 AND "to_address_id" = 854;
|
||||||
|
|
||||||
-- *** The Devious Delivery ***
|
-- *** The Devious Delivery ***
|
||||||
|
-- Get the delivery address of the parcel with missing "from_address_id"
|
||||||
|
SELECT * FROM "packages" WHERE "from_address_id" IS NULL;
|
||||||
|
|
||||||
|
-- Get info about the given address
|
||||||
|
SELECT * FROM "addresses" WHERE "id" = 50;
|
||||||
|
|
||||||
-- *** The Forgotten Gift ***
|
-- *** The Forgotten Gift ***
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user