Question: SQL Part I: Database Creation and Basic Operations 1 . Create a new database named UniversityManagement. 2 . Within UniversityManagement, create the following tables: Students
SQL
Part I: Database Creation and Basic Operations
Create a new database named UniversityManagement.
Within UniversityManagement, create the following tables:
Students with fields: StudentID, FirstName, LastName, BirthDate, Department.
Professors with fields: ProfessorID, FirstName, LastName, Department, Title.
Courses with fields: CourseID, CourseName, Department, Credits.
Enrollments with fields: EnrollmentID, StudentID, CourseID, Semester, Grade.
Populate each table with at least entries.
Write SQL commands to update, delete, and insert data into these tables.
Part II: Advanced Querying
Perform complex queries involving multiple tables. Include:
A query to list all students and the courses they are enrolled in
A query to find professors who are not advising any student.
A query to calculate the average grade per course.
Use the GROUP BY and ORDER BY clauses to organize your query results.
Use the JOIN operation to combine rows from two or more tables.
Part III: Database Maintenance and Security
Demonstrate how you would back up the UniversityManagement database.
Write a guide on how to restore the database from the backup.
Discuss the importance of database indexing and create an index on one of the fields in the Students
table.
Implement user privileges by creating different user profiles with distinct access levels readonly,
readwrite, and administrative
Part IV: Reporting and Documentation
Generate a report that includes:
A summary of all tasks completed with the corresponding SQL commands used.
Screenshots of the output or results of your SQL commands.
A section discussing any challenges faced during the assignment and how you overcame them.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
