Harsharan Kaur Section 4-2 October 10, 2020
Harsharan Kaur Section 4-2 October 10, 2020
Section 4-2
October 10, 2020
Section 4-2 # 1, 6
6. Divide 34 by 8.Show only the remainder of the division. Name the output as
EXAMPLE.
2. Display the days between the start of last summer’s school vacation break and
the day school started this year. Assume 30.5 days per month. Name the output
“Days.”
SELECT ROUND(86.678, 2)
FROM DUAL;
2. Write a statement that will display the DJs on Demand CD titles for cd_numbers
90 and 91 in up- percase in a column headed “DJs on Demand Collections.”
SELECT TRUNC(73.892, 1)
FROM DUAL;
13. Write a statement that will find any of the DJs on Demand CD themes that
have an “ie” in their names.
SELECT description
FROM d_themes
WHERE description LIKE '%ie%';
Section 5-1 # 6
6. Ellen Abel is an employee who has received a $2,000 raise .Display her first
name and last name, her current salary, and her new salary. Display both salaries
with a $ and two decimal places. Label her new salary column AS New Salary.
2. Not all Global Fast Foods staff members receive overtime pay. Instead of
displaying a null value for these employees, replace null with zero. Include the
employee’s last name and overtime rate in the output. Label the overtime rate as
“Overtime Status”.