0% found this document useful (0 votes)
23 views1 page

ScottFuntcionsExercises 1

The document provides instructions for 11 queries to run on employee data: 1) Calculate and display 15% pay increases for all employees rounded down, 2) Display names in various capitalization formats, 3) Format employee names combining digits and text, 4) Output statements about employee name lengths, 5) Display names, hire dates and months employed for longest-tenured employees first, 6) Categorize salaries as above, on, or below a threshold, 7) Display the current day of the week, 8) Report max, min, and average salaries, 9) Summarize total salaries by job type, 10) Count the number of clerks, 11) List departments with more than 3 employees.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views1 page

ScottFuntcionsExercises 1

The document provides instructions for 11 queries to run on employee data: 1) Calculate and display 15% pay increases for all employees rounded down, 2) Display names in various capitalization formats, 3) Format employee names combining digits and text, 4) Output statements about employee name lengths, 5) Display names, hire dates and months employed for longest-tenured employees first, 6) Categorize salaries as above, on, or below a threshold, 7) Display the current day of the week, 8) Report max, min, and average salaries, 9) Summarize total salaries by job type, 10) Count the number of clerks, 11) List departments with more than 3 employees.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1 List all employees, give each a 15% pay increase and display new salary always rounded down

to the nearest whole number. Display name, old salary and new salary. 2 List all employee names in upper and lower case, also display the name with the first character in upper and the rest in lower. 3 Create a list that displays the first 2 digits of the employee name, followed by the empno, followed by the rest of the name, display as a single column. 4 Generate the following output:
EMPLOYEES ----------------------Smith is 5 digits long Allen is 5 digits long Ward is 4 digits long Jones is 5 digits long Martin is 6 digits long Blake is 5 digits long . . . . .

5 Display the name, hiredate and number of whole months each employee has been employed. Show the highest first. 6 List each employee name along with the salary if it is more than 1500, if it is 1500 print On Target, if it is less than 1500 print Below 1500. 7 Write a query that will display the day of the week for the current date. 8 List the maximum, minimum and average salaries for all employees. 9 List the total salary bill for each job type. 10 Display a count of how many CLERKS there are. 11 Find all departments that have more than 3 employees.

You might also like