Skip to content
Open
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
22 changes: 20 additions & 2 deletions samples/tasty_bytes/tb_zts_transformation.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;