Skip to content

Commit b7cf601

Browse files
Merge pull request #10 from Ritik574-coder/dbt_branch
adding the intermediate models refared to the staging
2 parents 03ef087 + 1d4d1f0 commit b7cf601

39 files changed

Lines changed: 159 additions & 2 deletions

models/intermediate/Inventory/int_inventory_product.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
SELECT
2+
inventory_snapshot_sk,
23
snapshot_date,
34
product_id,
45
product_name,

models/intermediate/Inventory/int_inventory_stock.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
SELECT
2-
snapshot_date,
2+
inventory_snapshot_sk,
33
product_id,
44
stock_on_hand,
55
stock_reserved,

models/intermediate/Inventory/int_inventory_valuation.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
SELECT
2-
snapshot_date,
2+
inventory_snapshot_sk,
33
product_id,
44
stock_on_hand,
55
stock_reserved,
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
SELECT
2+
product_id,
3+
sku,
4+
product_name,
5+
brand,
6+
category,
7+
sub_category,
8+
department,
9+
launched_date,
10+
product_url
11+
FROM {{ ref('stg_products') }} ;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
SELECT
2+
product_id,
3+
is_available,
4+
stock_quantity,
5+
reorder_level
6+
FROM {{ ref('stg_products') }} ;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
SELECT
2+
product_id,
3+
base_price_usd,
4+
cost_price_usd,
5+
gross_margin_pct
6+
FROM {{ ref('stg_products') }} ;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
SELECT
2+
product_id,
3+
supplier_name,
4+
supplier_country,
5+
warranty_years,
6+
rating_avg,
7+
review_count
8+
FROM {{ ref('stg_products') }} ;

models/intermediate/Products/int_products_attributes.sql

Whitespace-only changes.

models/intermediate/Products/int_products_inventory.sql

Whitespace-only changes.

models/intermediate/Products/int_products_pricing.sql

Whitespace-only changes.

0 commit comments

Comments
 (0)