Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Phaks
Starting Member
1 Post |
Posted - 2012-07-06 : 07:19:59
|
I have this code for my calculation,which compliance must be calculated per manager.Is there a way i can quarter=1 by a formula so that the code search for it's self quarter1? select r.s_manager_id,r.s_manager_nam,count(distinct(emp_id))Total_Employees, round((SUM(decode(comply,'y',1,0))/count(comply))*100,2)||'%'leave from s_manager r,leave_compliance l where r.s_manager_id = l.s_manager_id AND quarter = 1 GROUP BY r.s_manager_id,r.s_manager_namkllkklk |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2012-07-06 : 07:24:05
|
I'm sure this is oracle.These are MS SQL Server forums.To get better help you should post your question in an oracle forum like dbforums.com/oracle. No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
|
|
|