https://github.com/legendarym4x/sql_database_queries
SQL learn
https://github.com/legendarym4x/sql_database_queries
python sql sqlite3
Last synced: 11 months ago
JSON representation
SQL learn
- Host: GitHub
- URL: https://github.com/legendarym4x/sql_database_queries
- Owner: legendarym4x
- Created: 2023-12-05T15:13:23.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-12T13:05:30.000Z (over 2 years ago)
- Last Synced: 2025-01-01T14:29:16.802Z (over 1 year ago)
- Topics: python, sql, sqlite3
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## SQL Database Queries
We implemented a database, the scheme of which contains:
Table of students;
Table of groups;
Table of teachers;
Table of subjects with the indication of the teacher who reads the subject;
A table where each student has grades in subjects with an indication of when
the grade was received.
The resulting database was filled with random data (~30-50 students, 3 groups, 5-8 subjects, 3-5 teachers, up to 20 grades for each student in all subjects). We used the `Faker` package to fill the tables with the necessary data.
For each request, a separate file `query_number.sql` was issued, where instead of number, substitute the number of the request. We also created an additional file containing an `SQL` instruction that can be executed both in the database terminal and through the Pycharm `cursor.execute(sql).`