Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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. e

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

Principles Of Database Systems With Internet And Java Applications

Authors: Greg Riccardi

1st Edition

020161247X, 978-0201612479

More Books

Students also viewed these Databases questions

Question

Explain the causes of indiscipline.

Answered: 1 week ago