Answered step by step
Verified Expert Solution
Question
1 Approved Answer
kindly solve for mysql Students (Student_Id, Student_Name, Studaddress ,Student_Batch, deptartment ,CGPA) Instructors (Instructorld, InstructorName, salary, joingdate) Courses (Courseld, CourseName, CourseCreditHours, Instructorld) Registration (Studentld, Courseld, Grade)
kindly solve for mysql
Students (Student_Id, Student_Name, Studaddress ,Student_Batch, deptartment ,CGPA) Instructors (Instructorld, InstructorName, salary, joingdate) Courses (Courseld, CourseName, CourseCreditHours, Instructorld) Registration (Studentld, Courseld, Grade) Tasks: 1. Create all the above tables in the database. 2. Identify all primary and foreign keys in the tables and add primary keys and foreign keys using Alter command. 3. Insert the following values for tables of student, instructors, Courses, and registration respectively. 4. Display Studient_id and Studentbatch only. 5. Display the student of DS department. (Use where clause). 6. Change the column name 'CourseName' from Courses table to 'SubjectName'. 7. Display the name of Instructors who have 'Muhammad' in their name. (use 'like' and '\%' operator) 8. Display the instructors names based on the highest salary (use order by). 9. List all the instructor who joined in January or December month (use built in function) 10. List Instructors names who joined before 2018. 11. Display the instructors name with their salaries after incrementing their salaries to 5000 . (use arithmetic operator)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started