Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
23/12/2024 - Create SQL
06/01/2025 - add unsubscribed email
13/01/2025 - add opt-in data
21/01/2024 - change to use new telephone & email field in Michael's data
21/01/2025 - change to use new telephone & email field in Michael's data
27/01/2025 - add the additional fields, Date Registered, in_hackney, gform
*********************************************************************************/
With Interim_Wait as (
SELECT
Expand All @@ -41,6 +42,8 @@
,lat
,long
,telephone
,date_registered
,in_hackney, gform
FROM "parking-raw-zone".interim_cycle_wait_list
WHERE import_date = (select max(import_date)
from "parking-raw-zone".interim_cycle_wait_list)),
Expand Down Expand Up @@ -91,6 +94,7 @@
A.forename, A.surname, A.email, A.party_id_to, A.party_id, A.uprn, A.address1, A.address2,
A.post_code, A.x, A.y, A.lat, A.long, cast(telephone as varchar) as telephone_number,
C.address2 as Street, B.housing_estate, A.email as email_address,
date_registered, in_hackney, gform,

format_datetime(CAST(CURRENT_TIMESTAMP AS timestamp),
'yyyy-MM-dd HH:mm:ss') AS import_date_timestamp,
Expand Down
Loading