This document explains the entities, attributes, ER diagram, and queries of a database management system. It also includes personal reflection and bibliography. The subject and course code are not mentioned.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
Running head: DATABASE Database Management System Name of the student: Name of the University: Author Note
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
1 DATABASE Part A List of entities and attributes The entities and the attributes of the Sydney Dance Academy database has been listed below: Students Student_Number Last_Name First_Name Email Phone_Number Branch Branch_Number Branch_Location Dance Style Style_Name Rate Instructors Instructor_Number Instructor_Name Rooms
3 DATABASE Payment_Date ER Diagram Part C Query 1 Select CONCAT (First_Name, " ",Last_Name) As StudentName, Email From student; +-----------------+-----------------+ | StudentName| Email|
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
4 DATABASE +-----------------+-----------------+ | Steve Richard| rich@gmail.com | | Owen Hargreaves | owen@gmail.com | | Kelly Baines| kelly@gmail.com | +-----------------+-----------------+ 3 rows in set (0.00 sec) Query 2 SELECT * FROM dance_style WHERE rate > 12; +-----------------+------+ | Style_Name| rate | +-----------------+------+ | Bachata|16 | | Ball Room Dance |19 | | Tango|19 | +-----------------+------+ 3 rows in set (0.00 sec) Query 3 Select * from Student where Phone_Number IS NULL; +----------------+------------+------------+-----------------+--------------+ | Student_Number | First_Name | Last_Name | Email| Phone_Number |
5 DATABASE +----------------+------------+------------+-----------------+--------------+ |1 | Steve| Richard| rich@gmail.com |NULL | |2 | Owen| Hargreaves | owen@gmail.com |NULL | |3 | Kelly| Baines| kelly@gmail.com |NULL | +----------------+------------+------------+-----------------+--------------+ 3 rows in set (0.00 sec) Query 4 SELECT CONCAT (student.First_Name, " ",student.Last_Name) As StudentName FROM student INNER JOIN enrolment ON enrolment.Student_number = student.Student_number INNER JOIN schedule ON Schedule.class_ID = enrolment.class_ID INNER JOIN branch ON branch.Branch_number = schedule.Branch_Number WHERE branch.Branch_Location LIKE '%Hill'; +---------------+ | StudentName| +---------------+ | Steve Richard | +---------------+ 1 row in set (0.00 sec) Query 5 SELECT instructor.Instructor_Name FROM instructor INNER JOIN schedule ON instructor.Instructor_number = schedule.Instructor_number HAVING COUNT(schedule.class_ID)> 5;
6 DATABASE +-------------------+ | Instructor_Name| +-------------------+ | Henry Springfield | +-------------------+ 1 row in set (0.00 sec) Query 6 SELECTCONCAT(student.First_Name,"",student.Last_Name)AsStudentName, SUM(payment.Amount) from student INNER JOIN enrolment ON enrolment.Student_number= student.Student_Number INNER JOIN payment ON payment.Enrolment_Number = enrolment.Enrolment_Number GROUP BY StudentName; +-----------------+---------------------+ | StudentName| SUM(payment.Amount) | +-----------------+---------------------+ | Kelly Baines|75 | | Owen Hargreaves |50 | | Steve Richard|35 | +-----------------+---------------------+ 3 rows in set (0.00 sec)
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
9 DATABASE |3 |3 | Cash|75 | 2018-12-15| +----------------+------------------+--------------+--------+--------------+ 2 rows in set (0.00 sec) Personal reflection that describes your experience building the database The development of the database has been started from the logical aspect. For the development of the database the logical diagram was designed. The ER diagram was helpful in the realisation process of the entities and the attributes of the system. The ER Diagram has been developed on the MS Visio tool. The relationships and the attributes for the system has been identified efficiently by the diagram. However some difficulties were faced during the deployment of the database resulting from the ER diagram for the database. However the tutorials from the internet were referred for the foreign key constrains and the problem was solved efficiently.
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
10 DATABASE Bibliography Kopaczyk, J., Molineaux, B., Karaiskos, V., Alcorn, R., Los, B. and Maguire, W., 2018. Towards a grapho-phonologically parsed corpus of medieval Scots: Database design and technical solutions1. Corpora. Pejathaya,K.,Talluri,G.andBhide,A.S.,TataConsultancyServicesLtd,2017.Foreignkey identification in database management systems. U.S. Patent 9,552,379.