Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

give me the SQL code 1. Create a view EMP_DEPT that contains the employee_id, last_name, and department_id all employees in department id 90 . They

image text in transcribed

give me the SQL code

1. Create a view EMP_DEPT that contains the employee_id, last_name, and department_id all employees in department id 90 . They have requested that you label the view columns EMPNO, EMPLOYEE NAME, and DEPTNO. For security purposes, do not allow an employee to be reassigned to another department through the view. 2. display the structure and contents of the EMP_DEPT 3. For each department_name Create a view named EMPDEPT that contains the maximum salary minumum salary average salary , sum salary, count of employees and department_name for all employees work in department id 90 you label the view columns maxsal avgsal minsal sumsal countemp and deptname For security purposes, do not allow an employee to be reassigned to another department through the view

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions