Question: Find the SQL code for the following business question. The company would like to see how long its employees have been with the organization for
Find the SQL code for the following business question. The company would like to see how long its employees have been with the organization for over 15 years as of 6/01/2022. The query needs to provide the first name, last name, and the time with the company (TimeWithCo) for only those employees that are still with the organization. Make sure to show the longest tenured employees first.
Step by Step Solution
3.43 Rating (162 Votes )
There are 3 Steps involved in it
SELECT firstname lastname TIMESTAMPDIF... View full answer
Get step-by-step solutions from verified subject matter experts
