I have a table that log salary-increase-process have
fields: autoid, old_salary, acctno
and table EMP: acctno, name, salary
I want to list count increase-salary of employees, each have
old_salary, new_salary.
Help me with SELECT statement, please!

Answer Posted / abhisudipta

select distinct a.acctno,b.name,a.old_salary,b.salary,
nvl((sum(b.salary)-sum(a.old_salary)),0) count_increase
from salary_increase_process a,emp b
where a.acctno=b.acctno
group by a.acctno,b.name,a.old_salary,b.salary;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use bulk collect in oracle?

569


How is it different from a normal table?

579


What is integrity and what is constraint??Explain with example

1695


How to work with data objects interactively?

553


How can we create the complete backup of data in the oracle.

1682






What is different types of joins?

572


Explain index?

743


Explain coalesce function?

624


What is the difference between translate and replace in oracle?

648


What is a tns service name?

534


How many file formats are supported to export data?

658


How to view the data files in the current database?

592


What is the database name in oracle?

534


How do I limit the number of rows returned by an oracle query after ordering?

629


What are the different editions of oracle?

589