Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Where is the export dump file located?

1158


What is dynamic proxy?

1005


I have a database backup file in .db (ext) form how to conver it into .dmp (ext.) for oracle database

2136


How do we represent comments in oracle?

1048


What will be the syntax to find current date and time in format "yyyy-mm-dd"?

1011


Why cursor variables are easier to use than cursors?

1094


Is there a function to split a string in plsql?

1056


Which is better Oracle or MS SQL? Why?

4943


How to connect ms access to oracle servers?

1006


What are the common oracle dba tasks?

1147


How to count duplicated values in a column in oracle?

1039


How to start an oracle instance?

1018


Is oracle a relational database?

916


What is meant by an index?

1145


How does the on-delete-cascade statement work?

1104