Question: Execute the following to build the 'yourfirstname _ new _ emps' table. A . Drop the existing table ( if it exists ) : DROP
Execute the following to build the 'yourfirstnamenewemps' table.
A Drop the existing table if it exists:
DROP TABLE yourfirstnameemps;
B Create the new table and add additional column:
CREATE TABLE yourfirstnamenewemps AS SELECT FROM employees;
ALTER TABLE yourfirstnamenewemps ADD stars VARCHAR;
C Create a PLSQL block to insert asterisks into the 'stars' column based on the
employee's salary. Each asterisk represents $ of salary. For example, a salary of
$ should result in and a salary of $ should result in Use the
following code as a starting point and complete the 'FOR LOOP' section.
Note that the 'TRUNC removes the decimal portion after dividing the salary by
Eg for a salary of $ it becomes
DECLARE
vempno yourfirstnamenewemps.employeeidTYPE :
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
