Question

10. Google and learn about the SQL functions Datepart and Datename. Use this function to show the number of employees hired b

0 0
Add a comment Improve this question Transcribed image text
Answer #1

If you have any doubts, please give me comment...

By using DATEPART:

SELECT DATEPART(w, HireDate) AS 'weekday', COUNT(*) AS 'number of hires'

FROM Employee

GROUP BY DATEPART(w, HireDate);


By using DATENAME:

SELECT DATENAME(w, HireDate) AS 'weekday', COUNT(*) AS 'number of hires'

FROM Employee

GROUP BY DATENAME(w, HireDate);

Add a comment
Know the answer?
Add Answer to:
10. Google and learn about the SQL functions Datepart and Datename. Use this function to show...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1. The service departments at Tionesta Ford Lincoln Mercury and Sheffield Motors Inc., two of the...

    1. The service departments at Tionesta Ford Lincoln Mercury and Sheffield Motors Inc., two of the four Applewood Auto Group dealerships, were both open 24 working days last month. Listed below is the number of vehicles serviced last month at the two dealerships. Construct dot plots and report summary statistics to compare the two dealerships. Tionesta Ford Lincoln Mercury Friday Saturday Thursday Wednesday Tuesday Monday 26 28 39 27 33 23 35 32 33 28 32 30 32 27 31...

  • Coding in C++ Write a program using structures to store the following weather information: - Month...

    Coding in C++ Write a program using structures to store the following weather information: - Month name - Day of month (Monday, Tuesday, etc) - High Temperature - Low Temperature - Rainfall for the day Use an the input.txt file to load the data into weather structures. Once the data for all the days is entered, the program should calculate and display the: - Total rainfall for the data - Average daily temperatures. (note: you'll need to calculate the days...

  • 9. Google and learn about the SQL function "Case...When...End". Use this function to show the number...

    9. Google and learn about the SQL function "Case...When...End". Use this function to show the number of female, male, and total number of current employees Female Male Total 84 206 290 1 9. Google and learn about the SQL function "Case...When...End". Use this function to show the number of female, male, and total number of current employees Female Male Total 84 206 290 1

  • SQL- Microsoft Access List the employee number, employee last name, and pilot license type (if an...

    SQL - Microsoft Access --------------------------------------------------------------------- SQL- Microsoft Access List the employee number, employee last name, and pilot license type (if any) for all employees. (Hint: LEFT oUTER JOIN or OUTER JOIN must be used, because "if any"-some of them are not pilots). EMP NUM EMP TITLE EMP LNAME EMP FNAME EMP INITIAL EMP DOB EMP HIRE_DATE Click to Add 100 Mr 101 Ms. 102 Mr 103 Ms. 104 Mr 105 Mr 106 Mrs 107 Mr 108 Mr 109 Ms. 110...

  • The number of workers needed for a bank is shown below. Monday Tuesday Wednesday Thursday Friday...

    The number of workers needed for a bank is shown below. Monday Tuesday Wednesday Thursday Friday Saturday Sunday 4 5 6 3 8 9 2 Suppose those employees in the same bank are paid $150 per day the first four days and they work a day of overtime at a cost of $350. How should the bank schedule its employees?

  • Travel Data 10. Using your travel data: a. Develop a 95% confidence interval for your mean...

    Travel Data 10. Using your travel data: a. Develop a 95% confidence interval for your mean time to work (lunch) using time in minutes. b. What assumption is necessary for you to complete part (a)? Do you feel this assumption is valid? 119 B C A 1 TO WORK Time in Day of Week Minutes 2 Date Ce 2-Sep Monday 3-Sep Tuesday 4-Sep Wednesday 5-Sep Thursday 6-Sep Friday 9-Sep Monday 10-Sep Tuesday 11-Sep Wednesday 12-Sep Thursday 13-Sep Friday 16-Sep Monday...

  • QUESTION-1 A post office requires different numbers of full-time employees on different days of the week. The number of...

    QUESTION-1 A post office requires different numbers of full-time employees on different days of the week. The number of full-time employees required on each day is given in the table. Union rules state that each full-time employee must work five consecutive days and then receive two days off. The post office wants to meet its daily requirements using only full-time employees. Number of rime Employees Required Day 17 Day 2 -Tuesday Day 3-Wednesday Day 4-Thursday Day 5 Friday Day 6...

  • The emergency room at a hospital estimates the following requirements for registered nurses (RNs) for the...

    The emergency room at a hospital estimates the following requirements for registered nurses (RNs) for the late night shift each week. Full-time nurses work four consecutive days, then have off three days. The minimum number of full-time nurses required to meet the emergency room coverage and scheduling requirements is: Sunday Monday Tuesday [Wednesday Thursday Friday Saturday 2 2 6 а.9 b. 8 C. 6 7 d.

  • Write a C++ Program. You have a following class as a header file (dayType.h) and main()....

    Write a C++ Program. You have a following class as a header file (dayType.h) and main(). #ifndef H_dayType #define H_dayType #include <string> using namespace std; class dayType { public:     static string weekDays[7];     void print() const;     string nextDay() const;     string prevDay() const;     void addDay(int nDays);     void setDay(string d);     string getDay() const;     dayType();     dayType(string d); private:     string weekDay; }; #endif /* // Name: Your Name // ID: Your ID */ #include <iostream>...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT