https://github.com/memosainz/sportclub-mysql-phpmyadmin
A small exercise. Two tables emulating the database of a sport club. Where it's being used phpMyAdmin with MySQL.
https://github.com/memosainz/sportclub-mysql-phpmyadmin
myphpadmin mysql sql
Last synced: about 2 months ago
JSON representation
A small exercise. Two tables emulating the database of a sport club. Where it's being used phpMyAdmin with MySQL.
- Host: GitHub
- URL: https://github.com/memosainz/sportclub-mysql-phpmyadmin
- Owner: MemoSainz
- Created: 2024-08-03T14:32:32.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-08-03T15:41:52.000Z (10 months ago)
- Last Synced: 2025-02-07T13:40:18.299Z (4 months ago)
- Topics: myphpadmin, mysql, sql
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Sport ClubA database created called Club in where it's included two tables: sports & people.
> [!IMPORTANT]
> Development
> - Every person will have: num_person, name, surname & dni. And they will be assigned one sport.
>
> - Every sport willhave: fk_code, is_it_grupal. (This last one due people obviously play sports with many people or just one person, like tennis)
>
> - A development of the datababase with their corresponding tables and relations.
>
> - Add at least 10 registries in the table of people and 3 in the table of sports (tennis, football and basket are suggested)
## Queries SQL
It is required, after doing the development of the exercise, this 4 sections.
- Obtain a whole list of all the people
```sql
SELECT * FROM people;
```- Obtain a whole list of all sports
```sql
SELECT * FROM sports;
```- Obtain a list of th people who practices tennis.
```sql
SELECT * FROM people WHERE fk_code=1;
```- Obtain the quantity of people who practices football.
```sql
SELECT COUNT(fk_code) FROM people WHERE (fk_code=3);
```