Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

you with Textield given below (a) Consider the following table: EMPLOYEE (empid, ename, salary, joiningdate, designation, deptid), DEPT(deptid, dname) PROJECT(pid, pname, p_details, deptid) Write SQL

image text in transcribed

you with Textield given below (a) Consider the following table: EMPLOYEE (empid, ename, salary, joiningdate, designation, deptid), DEPT(deptid, dname) PROJECT(pid, pname, p_details, deptid) Write SQL queries for the following: (i) To display top two salaries. (ii) To display the name of the employees who are getting highest salaries in their departments, (iii) To display those employees who have their joining dates on Sunday (iv) To display the name of those employees who are getting more salary then the average salary of PHYSICS department. (v) To display the Department name where maximum number of employees are working

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

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions