1. Display the employee id, their first names and last names joined together, the length of the employee last name, and the numeric position of the letter a in the employee last name for those whose last names end with the letter n.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
SSK3408 Lab Practice 4 First Semester 2021-2022 K9
Lab Practice 4
1. Display the employee id, their first names and last names joined together, the length of the
employee last name, and the numeric position of the letter a in the employee last name for
those whose last names end with the letter n.
2. Write a query to display the current date. Label the column Date.
3. Write a query to display the last name and the number of weeks employed for all employees in
department 60. Round the weeks into nearest total weeks.
4. The HR department needs a report to display the employee number, last name, salary and salary
increased by 15.5% (expressed as a whole number) for each employee. Label the column New
Salary. Hint : use Round Function
5. Add a column that subtracts the old salary from the new salary. Label the column Increase.
6. Write a query that displays the last name (with the first letter uppercase and all other letters
lowercase) and the length of the last name for all employees whose name starts with the letters
J, A or M. Give each column an appropriate label. Sort the results by the employees' last names.
7. The HR department wants to find the length of employment for each employee. For each
employee, display the last name and calculate the number of months between today and the
date on which the employee was hired. Label the column MONTHS_WORKED. Order your
results by the number of months employed. Round the number of months up to the closest
whole number.
8.
Create a query to display the last name and salary for all employees. Format the salary to be 15
characters long, left-padded with the $ symbol. Label the column SALARY.
9. Create a query that displays the employees' last names and commission amounts. If an
employee does not earn commission, show 0. Label the column COMM. Hint : use NVL
Transcribed Image Text:SSK3408 Lab Practice 4 First Semester 2021-2022 K9 Lab Practice 4 1. Display the employee id, their first names and last names joined together, the length of the employee last name, and the numeric position of the letter a in the employee last name for those whose last names end with the letter n. 2. Write a query to display the current date. Label the column Date. 3. Write a query to display the last name and the number of weeks employed for all employees in department 60. Round the weeks into nearest total weeks. 4. The HR department needs a report to display the employee number, last name, salary and salary increased by 15.5% (expressed as a whole number) for each employee. Label the column New Salary. Hint : use Round Function 5. Add a column that subtracts the old salary from the new salary. Label the column Increase. 6. Write a query that displays the last name (with the first letter uppercase and all other letters lowercase) and the length of the last name for all employees whose name starts with the letters J, A or M. Give each column an appropriate label. Sort the results by the employees' last names. 7. The HR department wants to find the length of employment for each employee. For each employee, display the last name and calculate the number of months between today and the date on which the employee was hired. Label the column MONTHS_WORKED. Order your results by the number of months employed. Round the number of months up to the closest whole number. 8. Create a query to display the last name and salary for all employees. Format the salary to be 15 characters long, left-padded with the $ symbol. Label the column SALARY. 9. Create a query that displays the employees' last names and commission amounts. If an employee does not earn commission, show 0. Label the column COMM. Hint : use NVL
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY