Create Table: Staff Write a query to find unique Position from the staff table. List all employees who are either Manager or Assistant.

COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
1st Edition
ISBN:9780357392676
Author:FREUND, Steven
Publisher:FREUND, Steven
Chapter8: Working With Trendlines, Pivottables, Pivotcharts, And Slicers
Section: Chapter Questions
Problem 7EYK
icon
Related questions
icon
Concept explainers
Question
  1. Create Table: Staff
  2. Write a query to find unique Position from the staff table.
  3. List all employees who are either Manager or Assistant.
  4. How many Managers, Assistant and Supervisor are working in the company?
  5. List all ‘Assistant’ and add 500 to their salaries, also change the column heading to Salary With Bonus.
  6. Show all records in descending order with respect to Fname.
  7. Employees who are earning in a range 18-24k
  8. Query to print details for staff with the first name as “Mary” and “John” from Worker table
  9. Query to print details of the Workers whose FIRST_NAME contains ‘a’.
  10. Write an SQL query to fetch the names of workers who earn the highest salary.
Salary Gender Contact
9000
StaffNo Fname Lname Position
1
Mary
Howe
Assistant
F
1338
Supervisor 18000 M
12000 F
24000 F
30000 M
2
David
Ford
0223
3
Ann
Beech
Assistant
0224
4
Susan
Brand
0225
Manager
Manager
Assistant
5
John
White
1512
6
Julie
Lee
9000
F
1514
Transcribed Image Text:Salary Gender Contact 9000 StaffNo Fname Lname Position 1 Mary Howe Assistant F 1338 Supervisor 18000 M 12000 F 24000 F 30000 M 2 David Ford 0223 3 Ann Beech Assistant 0224 4 Susan Brand 0225 Manager Manager Assistant 5 John White 1512 6 Julie Lee 9000 F 1514
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Query Syntax
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L