Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the below two tables for reference Employeelnfo Table table [ [ EmpID , EmpFname,EmpLname,Department,Project,Address,DOB,Gender ] , [ 1 , Sanjay,Mehra,HR , P 1

Consider the below two tables for reference
Employeelnfo Table
\table[[EmpID,EmpFname,EmpLname,Department,Project,Address,DOB,Gender],[1,Sanjay,Mehra,HR,P1,Hyderabad(HY,01/12/1976,M],[2,Ananya,Mishra,Admin,P2,Delhi(DEL),02/05/1968,F],[3,Sonia,Kulkarni,HR,P1,Hyderabad(HY,02/05/1992,F]]
EmployeePosition Table
\table[[EmpID,EmpPosition,DateOfJoining,Salary],[1,Manager,0105?2022,500000],[2,Executive,0205?2022,75000],[3,Manager,0105?2022,90000]]
a) Write q query to find all the employees whose salary is between 50000 to 100000.
b) Write a query to find the names of employees that begin with 'S'
c) Write a query to fetch all employees who also hold the managerial position.
d) Write a query to fetch the department-wise count of employees sorted by department's count in ascending order
e) Write a query to retrieve the list of employees working in the same department.
image text in transcribed

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

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions

Question

List behaviors to improve effective leadership in meetings

Answered: 1 week ago