Jump to content

Snow Brothers Sunny Leone Ni Esara..


spidereddy

Recommended Posts

  • Replies 48
  • Created
  • Last Reply

Top Posters In This Topic

  • babugaru

    16

  • spidereddy

    15

  • ipaddress0

    2

  • sompapidi

    2

Top Posters In This Topic

select sum(
case when date_key between to_char(add_months(sysdate,-12),'YYYYMM') and to_char (sysdate,'YYYYMM')
then decode(sal_1,0,NULL, salary/sal_1) end)
end as annual_sal
from employee
group by emp_key,sal_1;

 

 

this is the right one..if anyone is interested..

Link to comment
Share on other sites

select sum(
case when date_key between to_char(add_months(sysdate,-12),'YYYYMM') and to_char (sysdate,'YYYYMM')
then decode(sal_1,0,NULL, salary/sal_1) end)
end as annual_sal
from employee
group by emp_key,sal_1;

 

 

this is the right one..if anyone is interested..

ok

Link to comment
Share on other sites

×
×
  • Create New...