Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL Q1. Create a query to display highest, lowest, sum, and average salary of all worker whose Job is analyst. Q2. Create a query to

SQL

Q1. Create a query to display highest, lowest, sum, and average salary of all worker whose Job is analyst.

Q2. Create a query to display the highest salary for each job.

Q3.Display the number of stores from staff table without listing them. Label the column Number of Stores.

Q4.Display the number difference between the highest and lowest salaries. Label the column DIFFERENCE.

Q5.Display the store number and the average of salaries in each store, Exclude any average is Less than 4000, exclude any worker whose job is clerk. Give each column an appropriate Label.

Q6. Create a query to display store id, store address, Total salaries in each store. , Exclude any Worker who do not have a store id. Sort the result in descending order by total salaries. Give each column an appropriate label.

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

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions