Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

To create the spPayIncreaseListing stored procedure you can use the following SQL ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

2. What are the benefits and drawbacks of a first mover strategy?

Answered: 1 week ago

Question

Describe the purpose of the PROJECT command in relational algebra.

Answered: 1 week ago