[Solved] DBS301-Lab 3 Single-Line Functions

$25

File Name: DBS301-Lab_3_Single-Line_Functions.zip
File Size: 320.28 KB

SKU: [Solved] DBS301-Lab 3 Single-Line Functions Category: Tag:
5/5 - (1 vote)

This weeks lab continues using the SELECT command and learning the interfaces for both SQL Developer and introduces the use of single-line functions.

Tasks

  1. Write a query to display the tomorrows date in the following format:September 15th of year 2019the result will depend on the day when you RUN/EXECUTE this query. Label the column Tomorrow.Advanced Option (BONUS): Define an SQL variable called tomorrow, assign it a value of tomorrows date, use it in an SQL statement. Dont forget to undefine it!
  2. For each employee in departments 20, 50 and 60 display last name, first name, salary, and salary increased by 4% and expressed as a whole number. Label the column Good Salary.Also add a column that subtracts the old salary from the new salary and multiplies by 12. Label the column Annual Pay Increase.
  3. Write a query that displays the employees Full Name and Job Title in the following format:DAVIES, CURTIS is ST_CLERKOnly employees whose last name ends with S and first name starts with C or K. Give this column an appropriate label like Person and Job. Sort the result by the employees last names.
  4. For each employee hired before 2012, display the employees last name, hire date and calculate the number of YEARS between TODAY and the date the employee was hired.
    1. Label the column Years worked.
    2. Order your results by the number of years employed. Round the number of years employed up to the closest whole number.
  5. Create a query that displays the city names, country codes and state province names, but only for those cities that starts with S and has at least 8 characters in their name. If city does not have a province name assigned, then put Unknown Province. Be cautious of case sensitivity!
  6. Display each employees last name, hire date, and salary review date, which is the first Thursday after a year of service, but only for those hired after 2017.
    1. Label the column REVIEW DAY.
    2. Format the dates to appear in the format like:WEDNESDAY, SEPTEMBER the Eighteenth of year 2019

Sort by review date

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] DBS301-Lab 3 Single-Line Functions
$25