From fa2920e5a55f041462d1a35e8172410ec68956f4 Mon Sep 17 00:00:00 2001 From: Mateusz Date: Thu, 30 Nov 2023 12:13:17 +0100 Subject: [PATCH] Update tb_zts_transformation.sql Add validation of the `_Ford` data updates to see mechanism of CREATE TABLE CLONE --- samples/tasty_bytes/tb_zts_transformation.sql | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/samples/tasty_bytes/tb_zts_transformation.sql b/samples/tasty_bytes/tb_zts_transformation.sql index 3df0d09..d9471e5 100644 --- a/samples/tasty_bytes/tb_zts_transformation.sql +++ b/samples/tasty_bytes/tb_zts_transformation.sql @@ -81,8 +81,26 @@ UPDATE frostbyte_tasty_bytes.raw_pos.truck_dev SET make = 'Ford' WHERE make = 'Ford_'; +-- Section 5: Step 2 - Validate updated data +SELECT + t.truck_id, + t.year, + t.make, + t.model +FROM frostbyte_tasty_bytes.raw_pos.truck_dev t +ORDER BY t.truck_id; --- Section 5: Step 2 - Building an Age Calculation +-- Section 5: Step 3 - Check the updated data in the source table. You can see that the data has not changed +SELECT + t.truck_id, + t.year, + t.make, + t.model +FROM frostbyte_tasty_bytes.raw_pos.truck t +ORDER BY t.truck_id; + + +-- Section 5: Step 4 - Building an Age Calculation SELECT t.truck_id, t.year, @@ -222,4 +240,4 @@ USE ROLE accountadmin; UPDATE frostbyte_tasty_bytes.raw_pos.truck SET make = 'Ford_' WHERE make = 'Ford'; ALTER TABLE frostbyte_tasty_bytes.raw_pos.truck DROP COLUMN truck_age; UNSET query_id; - \ No newline at end of file +