Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Custom logging
Loading Customers
5. The stg_customer table


Great, let's take a look at the second table – stg_customer.

This is a staging table that contains new customers. In this case, a new customer is one who has either a NULL or empty ID and who does not exist in the dim_customer table. The stg_customer table also handles new updates for existing customers (their ID is already present in the dim_customer table, but some other attributes have been changed and need to be updated).


Let's take a quick look at the second table – select the top five customers from the stg_customer table.