i have a table like
empid ename year month sal
1 x 98 jan 500
1 x 98 feb 500
1 x 98 mar 500
1 x 99 jan 600
1 x 99 feb 600
2 y 98 jan 600
2 y 98 feb 600
2 y 98 mar 600
2 y 99 jan 700
2 y 99 jan 700
and so on
i want to find out totsal for every emp on year wise
plz help me

Answer Posted / xyz

select empid, year, sum(sal) as Totalsalary
From employees
group by empid, year;

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the main features of Oracle 8i with context to datawarehouse?

1691


How to elaborate tracing level?

697


How to Create a folder using pmrep command?

632


Can any one give me a real time example for FACT TABLE & DIMENSIONAL TABLE?

1652


where to store informatica rejected data? How to extract the informatica rejected data?

614






How to handle decimal places while importing a flatfile into informatica?

731


what is INFORMATICA TESTING process

1851


What is the benefit of session partitioning?

610


can anyone explain me about retail domain project in informatica?

7447


Define mapplet?

634


What is the difference between router and filter?

654


How can you generate reports in informatica?

590


difference between repository database and repository service?

632


what is persistent lookup cahce?how to use and when to use this persistent lookup cahce?explain?

1802


Workflow is long running due to long running sql query so when we refer the query plan it tells the issue is due to partition of the db table. How to handle this?

1246