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!



I have a table that log salary-increase-process have fields: autoid, old_salary, acctno and table..

Answer / 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

More Oracle General Interview Questions

What is hot backup and logical backup?

0 Answers  


Explain about the analyze command in oracle?

0 Answers  


How to define a variable to match a table column data type?

0 Answers  


pls explain connect by prior with example and its real time use

3 Answers  


Maximum how many triggers can be updated in table ?

5 Answers   Accenture, Cap Gemini,






What is a Garbage Collection? and what is full recursive Garbage collection?

0 Answers   RBS,


How to see free space of each tablespace?

0 Answers  


What is the difference between Sleep and Wait? (Java)

1 Answers   RBS,


How to handle a single quote in oracle sql?

0 Answers  


What is the Tune Query

0 Answers  


What is a data dictionary and how can it be created?

0 Answers  


What are the benefits of ordbms?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)