Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this is what I have to do using SQL developer Display the employee number, name, salary, and salary increased by 15% expressed as a whole

this is what I have to do using SQL developer

"Display the employee number, name, salary, and salary increased by 15% expressed as a whole number. Label the column New Salary."

this is how I did it:

SELECT empno, ename, sal, round(sal*0.15+sal) "New Salary" FROM emp;

this is what my query looks like:

image text in transcribed

now, I am asked to

"Modify your query from 3 to add an additional column that will substract the old salary from the new salary. Label the column increase. Rerun your query."

the question is how can I do that?, is there is any way I can use the data from the "New Salary" column? how?

EMPNO ENAME SAL Neu Salary 7369 SHITH 7499 ALLEN 7521 WARD 7566 TONES 800 1600 12 50 2975 1250 2850 2450 3000 5000 1500 1100 950 3000 1300 920 1840 1438 3421 1438 3278 2818 3450 5750 1725 1265 1093 3450 1495 7654 MARTIN 7698 BLAKE 7782 CLARK 7788 SCOTT 7839 KING 7844 TURNER 7876 ADAMS 7900 JAMES 7902 FORD 7934 HILLER 14 rous selected

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions