Silver model part I

We will continue our example, we will analyze the data of the files , clean and transform the data from bronze schema. we will analyze the tables staff, staff_schedule and services_weekly.

staff

we will select the role unique values from staff table :

we will select the service unique values from staff table :

staff_schedule

we will select the role unique values from staff table :

we will select the service unique values from staff table :

staff and staff_schedule

We will analyze the join between staff and staff schedule:

Join by id

both tables have staff_id field lets check if they have the same values :

We see that the id are not correlated.

lets join by name :

lets count staff and staff_schedule

we can see that the table staff_schedule have more rows 16 more than staff table

Lets see if the name and role are the same in both table , because in real life staff member doesn’t change they roles. And as we see this hospital have 4 services is not a small hospital.

So we have 72 mistakes.

Next post we will continue the data analysis.

Links:


Posted

in

, ,

by

Comments

Leave a Reply