Question: Create a stored procedure named spPayIncreaseListing that returns the following columns: FirstName LastName HireDate (use a CONVERT function so HireDate appears as 05/22/12) PayRate

 Create a stored procedure named spPayIncreaseListing that returns the following columns: 

 

FirstName

LastName

HireDate (use a CONVERT function so HireDate appears as 05/22/12)

PayRate

 PayRateStartDate (use a CONVERT function so StartDate appears as 05/22/12)

PayRateEndDate (use a CONVERT function so EndDate appears as 05/22/12)

PayComment (use a conditional function so if COLA is yes the phrase "Cost of living increase appears, if HireDate = StartDate then "Initial Payrate" appears, otherwise "Pay raise" should appear)

TermDate (use a conditional function so if TermDate is null, "Still Employed" should appear, otherwise the value in TermDate should go here- hint to make this work you will have to use CONVERT)

 

Sort the records by LastName and by WorkID

 

Execute the procedure to verify that 95 rows are returned (do not include this statement with the query).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To create the spPayIncreaseListing stored procedure you can use the following SQL ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!