Skip to content

SomiaNasir/Data_Modelling_Basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Data Modelling

To understand how data modelling works, this repo covers designing the basic relational database schema in Python.

Data Source

Chinook Data [accessed on 02-June-2023]
This data source provides the csv files for all the tables in our database which can be used to read the data and populate the database. The following ER Diagram is helpful in developing the tables and defining the relations between them.
image

Data Modelling

Google Colab for Python and SQLite databases were used for this task.
data_modelling_basics.py contains the Python code for creating the database, creating the tables, establishing relationships between them and inserting the data from csv files into the database.

Verification using ER Diagram

After the successful creation of SQLite database, the ER diagram of the database can be made using MySQL Workbench. The step by step guide is illustrated in this Guide. The following diagram is obtained which matches our original model from the beginning thus the schema is built correctly.
gg2