10. Create a query that displays the first eight characters of the employees' last names and indicates the amounts of their salaries with asterisks. Each asterisk signifies a thousand dollars. Sort the data in descending order of salary. Label the column EMPLOYEES_AND THEIR_SALARIES.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
icon
Concept explainers
Question
SSK3408 Lab Practice 4 First Semester 2021-2022 K9
10. Create a query that displays the first eight characters of the employees' last names and indicates
the amounts of their salaries with asterisks. Each asterisk signifies a thousand dollars. Sort the
data in descending order of salary. Label the column EMPLOYEES_AND_THEIR_SALARIES.
11. Using the DECODE function, write a query that displays the grade of all employees based on the
value of the column JOB_ID, using the following data :
Job
Grade
AD_PRES
A
ST_MAN
В
IT PROG
C
SA_REP
D
ST_CLERK
None of the above
12. Rewrite the statement in the preceding exercise using the CASE syntax.
ш
Transcribed Image Text:SSK3408 Lab Practice 4 First Semester 2021-2022 K9 10. Create a query that displays the first eight characters of the employees' last names and indicates the amounts of their salaries with asterisks. Each asterisk signifies a thousand dollars. Sort the data in descending order of salary. Label the column EMPLOYEES_AND_THEIR_SALARIES. 11. Using the DECODE function, write a query that displays the grade of all employees based on the value of the column JOB_ID, using the following data : Job Grade AD_PRES A ST_MAN В IT PROG C SA_REP D ST_CLERK None of the above 12. Rewrite the statement in the preceding exercise using the CASE syntax. ш
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education