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 / 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 |
How can return max date row A b c d e 1 2 1-mar-09 5 10 1 2 10-mar-09 5 10 Only using oracle predefined function. Not user defined. Output:-- A b c d e 1 2 10-mar-09 5 10
what is the syntax of CREATE command?
What do you mean by redo log file mirroring?
waht is referencial integrity?
What is MTTR advisor in Oracle?
Use of an integrity constraint is better to validate data. Explain
what is difference between foreign key and reference key
What is an oracle?
what is a cartition product?
Differentiate between function and procedure in oracle.
What is a Garbage Collection? and what is full recursive Garbage collection?
What are steps required to ENTER DATA INTO DWH?