- To use this model you can test with Cockroachdb, Postgresql or Dbeaver database.
- First clone the repository.
- To create all tables in the model you should use the DDL file that is in sql_code directory (sql_code/ddl.sql)
- Next step you can generate the SQL code (DML) with the generate_data.py that is in sql_code directory (sql_code/generate_data.py), this file generate a script.txt file contained the sql code for insertions in all tables.
- Before you run the generate_data.py install the lib faker (pip install faker) in the cli.
- To run the generate_data.py only is necessary write ( python generate_data.py) in cli.
- To do the queries in database the DQL file is in sql_code directory (sql_code/dql.sql) with 5 queries required by project.
-
Notifications
You must be signed in to change notification settings - Fork 0
luiggigarcia/database_model_universityExample
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
An university database model with relational diagram, SQL code for DDL, DML and DQL.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published