Skip to content

Commit d2fef42

Browse files
authored
Update Parking_interim_cycle_hangar_waiting_list.py
add additional fields from the interim data (date_registered, in_hackney, gform,)
1 parent 521f66f commit d2fef42

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/jobs/parking/Parking_interim_cycle_hangar_waiting_list.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
23/12/2024 - Create SQL
2424
06/01/2025 - add unsubscribed email
2525
13/01/2025 - add opt-in data
26-
21/01/2024 - change to use new telephone & email field in Michael's data
26+
21/01/2025 - change to use new telephone & email field in Michael's data
27+
27/01/2025 - add the additional fields, Date Registered, in_hackney, gform
2728
*********************************************************************************/
2829
With Interim_Wait as (
2930
SELECT
@@ -41,6 +42,8 @@
4142
,lat
4243
,long
4344
,telephone
45+
,date_registered
46+
,in_hackney, gform
4447
FROM "parking-raw-zone".interim_cycle_wait_list
4548
WHERE import_date = (select max(import_date)
4649
from "parking-raw-zone".interim_cycle_wait_list)),
@@ -91,6 +94,7 @@
9194
A.forename, A.surname, A.email, A.party_id_to, A.party_id, A.uprn, A.address1, A.address2,
9295
A.post_code, A.x, A.y, A.lat, A.long, cast(telephone as varchar) as telephone_number,
9396
C.address2 as Street, B.housing_estate, A.email as email_address,
97+
date_registered, in_hackney, gform,
9498
9599
format_datetime(CAST(CURRENT_TIMESTAMP AS timestamp),
96100
'yyyy-MM-dd HH:mm:ss') AS import_date_timestamp,

0 commit comments

Comments
 (0)