yopplindsey yopplindsey
  • 26-06-2021
  • Computers and Technology
contestada

write the sql code to generate the total hours worked and the total charges made by all employees . the results are shown in fig.P7.8

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 01-07-2021

Answer:

Select SUM(HOURS), SUM(CHARGES) from employees

Explanation:

The table structure is not given. So, I will assume that the table name is "employees", the columns to retrieve are "hours" and "charges"

Having said that, the function to retrieve the total of column is the sum() function.

So, the query is as follows:

Select ----> This means that the query is to retrieve from the table

SUM(HOURS), SUM(CHARGES) --- This represent the records to retrieve

from employees ---- This represents the table to retrieve from.

Answer Link

Otras preguntas

a = b + t ✓x solve for x
A system of equations with a linear and quadratic equation must have two solutions.
please help math 30 pts
The stated course of action the government takes to address problems or issues
please help me out with this
find the possible values of x. the perimeter is less than or equal to 51 meters.
perform the steps for dividing the two polynomials using synthetic division. state the quotient, q(x), and the remainder, r(x). 2x^5-8x^4+2x^3+2x^2 / 2x^3+1
Bridgette spent $17.00 of the $24.00 in her wallet. Which decimal, rounded to the nearest thousandth, represents the fraction of the $24.00 dollars spent? A. 0.
Select the choice which best identifies the given passage from "The Cask of Amontillado." "I had told them that I should not return until the morning, and had g
Please someone help me please