Page 1 of 1

a) Suppose you are the DBA of a company and created a relation called Employees with fields ename, dept, and salary. For

Posted: Sun May 15, 2022 1:36 pm
by answerhappygod
A Suppose You Are The Dba Of A Company And Created A Relation Called Employees With Fields Ename Dept And Salary For 1
A Suppose You Are The Dba Of A Company And Created A Relation Called Employees With Fields Ename Dept And Salary For 1 (34.21 KiB) Viewed 54 times
a) Suppose you are the DBA of a company and created a relation called Employees with fields ename, dept, and salary. For authorization reasons, you also defined a view DeptInfo with fields dept and avg_salary, which lists the average salary of each department. Write a SQL statement to create the view DeptInfo. (3 marks)

b) Consider two relations R and S given below. Give the results of R INNER JOIN S, R LEFT OUTER JOIN S, and R RIGHT OUTER JOIN S. (3 marks) R S B B b ั A X Y Z ะก 100 200 ั e ั