Question: Please write SQL programming ( only) 2. Using a Noncorrelated Subquery Each month a memo is that lists the employees who have employment anniversaries for
2. Using a Noncorrelated Subquery Each month a memo is that lists the employees who have employment anniversaries for that month is posted. Create the report for the current month and list Employee ID and the first and last names for all employees hired during the current month of any year. You can find Employee. Name in the orionnemployee addresses table and Employee Hire Date in the orion.employee payroll table. Both tables contain the column Employee ID, Order the report by an employee's last name. a. Create a query that returns a list of employee IDs for employees with a current anniversary. The query should do the following Display Employee ID numbers. Use the orion employee payroll table. Return only employees whose hire date (Employee Hire ate is in the current month. Add a title to the report as shown. Partial PROC SQL Output (Generated when current month February) Employee IDs for current Month Anniversaries ployee, ID 120107 120116 120136 120162 120164
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
