Database Management System: Final Team Project Name - Student ID
Database Management System: Final Team Project Name - Student ID
Name| Student ID
Conceptual Design:
Our database is designed for a school where students’ details are kept alongside their scores
according to a particular year
The table has exactly six (6) attributes as listed below:
Student_id
Student_name
club
date_of_birth
year_of_study
student_marks
The above attributes are used to store each student data logically.
The table also has a primary key which is the student_id.
Date_of_birth
Year_of_study
club
Student_marks
Design:
The next step is where now we will Create and add data into our designed table.
Our table will be names as students, where the records are kept.
USAGE
Query Results:
(1).
+-------+----------------+
| club | TOTAL_STUDENTS |
+-------+----------------+
| green | 8|
+-------+----------------+
1 row in set (0.06 sec)
(2).
+------------------------------+
| TOTAL_STUDENTS_FROM_RED_CLUB |
+------------------------------+
| 1|
+------------------------------+
1 row in set (0.00 sec)
(3).
+------------+--------------+---------------+---------------+--------+---------------+
| student_id | student_name | date_of_birth | year_of_study | club | student_marks |
+------------+--------------+---------------+---------------+--------+---------------+
| 4 | joe | 2021-04-03 | 2001 | green | 30 |
| 6 | dickson | 2021-04-04 | 2001 | yellow | 30 |
| 7 | Mary | 2021-04-03 | 2001 | green | 56 |
| 8 | john | 2021-04-03 | 2001 | red | 89 |
| 9 | james | 2021-04-03 | 2001 | green | 100 |
| 10 | pk | 2020-08-13 | 2001 | green | 78 |
+------------+--------------+---------------+---------------+--------+---------------+
6 rows in set (0.00 sec)
(4).
+------------+--------------+---------------+---------------+-------+---------------+
| student_id | student_name | date_of_birth | year_of_study | club | student_marks |
+------------+--------------+---------------+---------------+-------+---------------+
| 5 | Kate | 2020-08-13 | 2001 | green | 6|
| 10 | pk | 2020-08-13 | 2001 | green | 78 |
+------------+--------------+---------------+---------------+-------+---------------+
2 rows in set, 1 warning (0.11 sec)
(5).
+---------------+
| Highest_Marks |
+---------------+
| 100 |
+---------------+
(6).
+-------------+
| Lowest_Mark |
+-------------+
| 5|
+-------------+
1 row in set (0.00 sec)
(7).
+------------+--------------+---------------+---------------+--------+---------------+
| student_id | student_name | date_of_birth | year_of_study | club | student_marks |
+------------+--------------+---------------+---------------+--------+---------------+
| 1 | james d | 2021-04-04 | 2001 | green | 5|
| 2 | peter k | 2021-04-03 | 2001 | green | 20 |
| 3 | jane | 2021-04-03 | 2001 | green | 5|
| 4 | joe | 2021-04-03 | 2001 | green | 30 |
| 5 | Kate | 2020-08-13 | 2001 | green | 6|
| 6 | dickson | 2021-04-04 | 2001 | yellow | 30 |
| 7 | Mary | 2021-04-03 | 2001 | green | 56 |
| 8 | john | 2021-04-03 | 2001 | red | 89 |
| 9 | james | 2021-04-03 | 2001 | green | 100 |
| 10 | pk | 2020-08-13 | 2001 | green | 78 |
+------------+--------------+---------------+---------------+--------+---------------+
10 rows in set (0.00 sec)
(8).
+------------+--------------+---------------+---------------+--------+---------------+
| student_id | student_name | date_of_birth | year_of_study | club | student_marks |
+------------+--------------+---------------+---------------+--------+---------------+
| 10 | pk | 2020-08-13 | 2001 | green | 78 |
| 5 | Kate | 2020-08-13 | 2001 | green | 6|
| 2 | peter k | 2021-04-03 | 2001 | green | 20 |
| 3 | jane | 2021-04-03 | 2001 | green | 5|
| 4 | joe | 2021-04-03 | 2001 | green | 30 |
| 9 | james | 2021-04-03 | 2001 | green | 100 |
| 7 | Mary | 2021-04-03 | 2001 | green | 56 |
| 8 | john | 2021-04-03 | 2001 | red | 89 |
| 6 | dickson | 2021-04-04 | 2001 | yellow | 30 |
| 1 | james d | 2021-04-04 | 2001 | green | 5|
+------------+--------------+---------------+---------------+--------+---------------+
10 rows in set (0.02 sec)
(9).
+--------------+
| Average_mark |
+--------------+
| 41.9000 |
+--------------+
1 row in set (0.06 sec)
(10).
+-------------+
| Total_SCore |
+-------------+
| 419 |
+-------------+
1 row in set (0.00 sec)