Oracle Reports (MOSC)

MOSC Banner

Matrix Report Problem

edited Sep 23, 2013 10:08PM in Oracle Reports (MOSC) 6 commentsAnswered ✓
 Hi everyone, 
I have created a matrix attendance report by using following query: 

select EMPLOYEE_ID, ATTENDANCE_DATE, sum(td) td ,

from 
(
select EMPLOYEE_ID, ATTENDANCE_DATE, round((time_diff(time_in,time_out)/60/60),2) td
from HR_ATTENDANCE_DETAIL
where to_char(attendance_date,'mon-rrrr') =  to_char(:as_on_dt,'mon-rrrr')
--and employee_id = 1 
union all 
SELECT  1, (:as_on_dt+ LEVEL - 1)  , 0  
                     FROM DUAL
               CONNECT BY LEVEL <= to_number(to_char(last_day(:as_on_dt),'dd'))

) x
group by EMPLOYEE_ID, ATTENDANCE_DATE
order by 2

I dont see any problem with this query but when i try to insert leave_status column in matrix which is varchar2 it dont show me proper data, or show me data related to employee 1. 

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center