Question
The textbook the problem refers to is Database System Concepts, Sixth Edition by Avi Silberschatz, Henry F. Korth, S. Sudarshan. I need the commands to
The textbook the problem refers to is Database System Concepts, Sixth Edition by Avi Silberschatz, Henry F. Korth, S. Sudarshan. I need the commands to enter for B. I tried inputting: UPDATE INSTRUCTOR SET SALARY = 10000 * (select count(course_id) from instructor natural left outer join teaches); Instructors have an ID, courses have an ID, teaches is what keeps the data of who teaches the course and when it is offered. Into myphpadmin. I get some sort of error due to instructor being put beside UPDATE and from. Is this the right way to get everyone an update salary as well?
Write queries for following statements and provide screenshot of the query result. [5x10 -50 points] [For a, b, d and e, considers the university database from the textbook] 1. Find all courses whose identifier starts with the string "CS-1" Update the salary of each instructor to 10000 times the number of course sections they have taught Assume you are given two relations, student(name, rollno) and marks(rollno, exam, mark) a. b. c. Show names of all students who have got marks in at least two exams Create a view CSinstructors, showing all information about instructors from the Comp. Sci. department. Grant permission to one of your friends to view all data in your student relation. Also make sure that you are granting your friend to pass the permission to others. d. eStep 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