https://github.com/remde/python-queries
Simple program to make MySQL queries using Python
https://github.com/remde/python-queries
Last synced: 5 months ago
JSON representation
Simple program to make MySQL queries using Python
- Host: GitHub
- URL: https://github.com/remde/python-queries
- Owner: remde
- Created: 2020-11-17T00:02:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-19T23:27:55.000Z (over 5 years ago)
- Last Synced: 2024-01-12T18:45:10.209Z (over 2 years ago)
- Language: Python
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python Queries
This program runs 10 distinct queries from a MySQL database that mimics Steam. To properly run this application, you need to setup a local MySQL server and upload our "steamdb" database which is included in this repository. The separate files for table creations, inserts, and queries are in the *db* folder.
To run this application you will also need Python and the mysql-connector module.
Go to the main folder and type:
```
python main.py
```
Alternatively, if you're using Python 3.x
```
python3 main.py
```
Additional database setup configuration might be needed depending on your network, OS, and general settings.
## Queries Index
1. Groups with a minimum (parametrized) number of participants.
2. Number of friends for each profile.
3. Number of news for each publishing company.
4. Categories with no programs.
5. Programs produced by more than one company.
6. Positive analysis by non-banned users.
7. Number of users that earned an insignia before a (parametrized) year, for each insignia.
8. Number of items for each user, ordered by the user's level.
9. Chest items and cosmetics that can be obtained in them.
10. Programs with a certain (parametrized) marker with a discount.