Question: Write a stored procedure called show_stars that gets an integer as its IN parameter. For a given employee id, you need to find out

Write a stored procedure called show_stars that gets an integer as its

Write a stored procedure called show_stars that gets an integer as its IN parameter. For a given employee id, you need to find out employee's Last Name, also salary, and "salary note" that is a sequence of asterisks (*) -- constructed by dividing salary by 2000 and taking only the integer portion (i.e. note will have One Asterisk for each $2,000 earned). Use our table Employee. (For 5 marks) Here are some relevant testings shown: SQL> execute show_stars(124); Name is Mourgos and the salary is 5800 and the note is ** PL/SQL procedure successfully completed. SQL> execute show_stars(176); Name is Taylor and the salary is 8600 and the note is **** PL/SQL procedure successfully completed. SQL> execute show_stars(99); This person does NOT exist PL/SQL procedure successfully completed.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!