In this video we will learn how to implement scd type 1 and type 2 using SQL. This will help you build logics using update and insert statement.
script:
CREATE TABLE product_stg(
Product_id INT,
Product_Name VARCHAR(50),
Price DECIMAL(9,2)
);
CREATE TABLE product_dim(
Product_id INT primary key,
Product_Name VARCHAR(50),
Price DECIMAL(9,2),
last_update date
);
create TABLE product_dim(
product_key int identity(1,1) primary key,
Product_id INT,
Product_Name VARCHAR(50),
Price DECIMAL(9,2),
start_date date,
end_date date
);
Zero to hero(Advance) SQL Aggregation:
[ Ссылка ]
Most Asked Join Based Interview Question:
[ Ссылка ]
Solving 4 Trick SQL problems:
[ Ссылка ]
Data Analyst Spotify Case Study:
[ Ссылка ]
Top 10 SQL interview Questions:
[ Ссылка ]
Interview Question based on FULL OUTER JOIN:
[ Ссылка ]
Playlist to master SQL :
[ Ссылка ]
Rank, Dense_Rank and Row_Number:
[ Ссылка ]
#sql #dataengineer
Ещё видео!