Who's Online
1 registered (Chris Abraham), 2 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Recent Posts
P11d's
by Chris Abraham
0 seconds ago
Oracle eBsuiness HRMS Trusted Recon Query Help
by CT
Today at 02:24 PM
Concurrent Request - running slow
by CT
Today at 12:48 PM
Pension Auto Enrolment
by delboy
Today at 12:13 PM
Oracle eBsuiness HRMS Trusted Reconcilaition Help
by Mani
Today at 07:35 AM
Element to recover value in balance on leaving
by jkavia
Yesterday at 11:04 AM
Assignment EIT not displaying in Self Service
by CT
Yesterday at 06:45 AM
Vehicle Mileage Setup
by Chris Abraham
21/05/12 12:24 PM
In which table is external learning data stored
by DMC
21/05/12 08:45 AM
Oracle Payroll and Cash Management
by Gus
20/05/12 11:27 AM
Top Posters (30 Days)
CT 40
delboy 39
Vigneswar Battu 15
pat.woodall 10
Mani 6
Gus 4
bcooper 4
Ryan 3
Jan 3
DMC 3
(Views)Popular Topics
Family Pack K issues thread 20170
CREATE_GRADE api returns:PLS-00306: wrong number o 15200
Still trying to locate... 13855
Creating hr jobs ORA-20001: HR_289477_JOB_GROUP_ID 11907
Viewing Output of another user 10324
HR_PF.K RUP4 10298
Review of my Release 12 laptop 9747
Enhanced Retro & Release 12 9402
Adding a taskflow button to a form 9140
Family Pack K 7910
Page 1 of 2 1 2 >
Topic Options
Rate This Topic
#722 - 15/07/05 01:46 PM Overlapping absences - Modern day query
vkumar Offline
claiming squatters rights
*****

Registered: 16/03/05
Posts: 223
Loc: Fullers Brewery West London
Friends . .In the golden olden days - use pl/sql block looping tables variables counters etc etc . .Stumbled upon a method whereby a combination of lead lag case and .inline views can produce a decent report ad hoc . .I was amazed at the results. Cant explain the theory behind this though. (coz I dont understand the relational theory myself) . .Will leave that to Janet and John . .-- Query to output overlapping absences .select ppf.employee_number ppf.last_name a.* .from .( .select date_start date_end last_enddate person_id .case when last_enddate is null then null . when last_enddate < date_start-1 then 'Gap' . when last_enddate > date_start then 'Overlap' .-- when date_end is not null and next_startdate is null then 'Missing next' . else null .end another_flag .from ( . select paa.* . lag(date_end) over (partition by person_id order by date_start) . last_enddate . lead(date_start) over (partition by person_id order by date_start) . next_startdate . from per_absence_attendances paa . order by person_id date_start . ) .) a .per_all_people_f ppf .where another_flag = 'Overlap' .and a.person_id = ppf.person_id .and a.date_start between ppf.effective_start_date and ppf.effective_end_date . . .-- Please point out any errors and constructive criticism welcome .cheers .Vin

Top
#723 - 15/07/05 03:10 PM Re: Overlapping absences - Modern day query
vkumar Offline
claiming squatters rights
*****

Registered: 16/03/05
Posts: 223
Loc: Fullers Brewery West London
Bolt on question . .Why does teh absence form just produce a warning and not an error when overlapping absences. Is this standard behaviour? . .How do other sites cope with this behaviour? .Custom library job??? or .Has the functionality been enhanced by a new patch?

Top
#724 - 15/07/05 03:55 PM Re: Overlapping absences - Modern day query
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1188
Loc: Bath
Vin I seem to recall that if the absences are 'Sickness' then it's an error. . .Intrigued by the query I shall have a look at that next week! Nice one...
_________________________
L&K
CT

Remember: A dog is for life, not just for Christmas... unless you're in Korea

Top
#725 - 18/07/05 07:34 AM Re: Overlapping absences - Modern day query
bcooper Offline

Guru
*****

Registered: 11/03/05
Posts: 1112
Loc: Earth, Europe, England, here
Seen some similar code from our Datawarehouse boys here at XYZ. Some of the functions these guys use are mind-blowing. . .Regarding the overlapping issue i'd tend to agree with CT. Unless the absence is SICKNESS you can quite happily have overlapping absences. . .I would normally reserve final judgement on this topic to Mr Grewal the disputed king of absence however since here rarely frequents this establishment we may just have to leave the question-mark hanging...
_________________________
HCM Aces is for sale! Please contact me if you are interested.
Also my random musings courtesy of Twitter

Top
#726 - 18/07/05 08:32 AM Re: Overlapping absences - Modern day query
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1188
Loc: Bath
[quote:b4277b3dfd]Mr Grewal the disputed king of absence[/quote:b4277b3dfd] .No truer word spoken on any HRMS-related bulletin board... where is the old fraud anyway?
_________________________
L&K
CT

Remember: A dog is for life, not just for Christmas... unless you're in Korea

Top
#727 - 18/07/05 01:48 PM Re: Overlapping absences - Modern day query
JGrewal01 Offline
passing stranger

Registered: 15/03/05
Posts: 1
I am afraid Absences can overlap.

Top
#728 - 18/07/05 02:33 PM Re: Overlapping absences - Modern day query
CT Offline
Guru
***

Registered: 11/03/05
Posts: 1188
Loc: Bath
Hurrah he lives! (Note to self - sell all remaining Oracle shares ASAP)
_________________________
L&K
CT

Remember: A dog is for life, not just for Christmas... unless you're in Korea

Top
#729 - 18/07/05 02:52 PM Re: Overlapping absences - Modern day query
vkumar Offline
claiming squatters rights
*****

Registered: 16/03/05
Posts: 223
Loc: Fullers Brewery West London
In fact he needed a follow up e-mail to log on ... . .and all he came up with was 6 words and a full stop.

Top
#730 - 19/07/05 06:37 AM Re: Overlapping absences - Modern day query
bcooper Offline

Guru
*****

Registered: 11/03/05
Posts: 1112
Loc: Earth, Europe, England, here
Grewal you can't leave us hanging like that....please explain.....
_________________________
HCM Aces is for sale! Please contact me if you are interested.
Also my random musings courtesy of Twitter

Top
#731 - 19/07/05 08:52 AM Re: Overlapping absences - Modern day query
bcooper Offline

Guru
*****

Registered: 11/03/05
Posts: 1112
Loc: Earth, Europe, England, here
Actually i've just had a chat with the Mr Absence and he explains is 6 words (and a full-stop) thus... .Overlapping absences are allowed because it needs to cater for multiple assignments. Until such time as the Absence model changes to Assignment-level (rather than its currently antiquated person-level) we're always going to get kicked by this. . .WHen the model does switch he assures me that overlapping SICKNESS absences for the same assignment will not be allowed. . .I'll give him a nudge and see if he wishes to add any further enlightenment.
_________________________
HCM Aces is for sale! Please contact me if you are interested.
Also my random musings courtesy of Twitter

Top
Page 1 of 2 1 2 >



Moderator:  Administrator, Geoff Dixon 
Forum Stats
792 Members
48 Forums
1584 Topics
7663 Posts

Max Online: 67 @ 14/04/12 05:38 PM
Today's Birthdays
No Birthdays
Recent vacancies
Top Posters
CT 1188
bcooper 1112
delboy 597
Geoff Dixon 369
SBi 356
vkumar 223
kp_rapolu 213
cbrookes 197
Gavin Harris 163
Gus 146
May
Su M Tu W Th F Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31