katrinajernae5639 katrinajernae5639
  • 31-07-2020
  • Computers and Technology
contestada

Use ONE SQL statement to show the total number of actual hours for each customer. In the output, show customer id and the total number of actual hours for each customer.

Respuesta :

Manetho
Manetho Manetho
  • 31-07-2020

Explanation:

SELECT  

   distributor_id,  

   COUNT(*) AS TOTAL,  

   COUNT(IF(level='exec',1,null)),

   COUNT(IF(level='personal',1,null))

FROM sometable;

Answer Link

Otras preguntas

Prior to the arrival of Europeans, what did the natives of North America have in common? a. They had elaborate trade networks. b. They all lived in small fami
If it took 10sec to climb the ladder what was your power in watts nd kilowatt?
What document guaranteed religious freedom, trial by jury, and election of officers by property owners in the New York colony?Mayflower CompactToleration ActCha
Four more than the quotient of 30 and a number
Which sentences contain a noun clause? a. Rhett was unwilling to listen to what his friend told him. b. Jade won the Frisbee competition that was held in the
How did the african American church interpret the message of Christianity
What features of colonial politics in 18th century America contributed to the development of popular democracy, and what kept political life from being more tru
314,207 in standard form expanded form and word form
A panel of four lights switches can be set in 2^4 ways. A panel of five light switches can be set in twice this many ways. In how many ways can five light switc
How do state of nature & war connected