Answered step by step
Verified Expert Solution
Link Copied!

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)

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

6th Edition

1943153035, 978-1943153039

More Books

Students also viewed these Databases questions

Question

=+e) How many degrees of freedom does it have?

Answered: 1 week ago