Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

emp(eid(underlined), ename, age, salary) dept(did (underlined), dname, budget, managerid) works (eid(underlined), did(underlined), pct_time) a. suppose the emps-works-dept database (see table above) is loaded into schema

emp(eid(underlined), ename, age, salary) dept(did (underlined), dname, budget, managerid) works (eid(underlined), did(underlined), pct_time)

a. suppose the emps-works-dept database (see table above) is loaded into schema hr (Human resources). the owner of this schema has made these tables readable by user user1 in user1 schema, also named user1 (this could be MySQL or Oracle) Give the SQL for user1 to display all the rows of the table emps in schema hr.

b. suppose user user1 wants user user2 to be able to read department IDs and names, but not budgets. propose a way (show the SQL) for user user1 to provide this data to user user2

c. give the SQL for user2 to display all the department IDs and names, once they have become available via the actions in part b.

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

More Books

Students also viewed these Databases questions

Question

7. Explain why retirees may be valuable as part-time employees.

Answered: 1 week ago