Who's Online
2 registered (spiro, CT), 2 Guests and 1 Spider online.
Key: Admin, Global Mod, Mod
Recent Posts
Heres a simple question on Workflow then ..
by natkins
Today at 09:53 AM
Defaulting PO Information on assignment screen
by SBi
Yesterday at 02:24 PM
E-Bus Configuration and Management
by PeterP
Yesterday at 01:28 PM
UMX : Oracle User Management Application
by natkins
Yesterday at 12:58 PM
HRMS organization structures
by Geoff_Dixon
Yesterday at 11:53 AM
HR_PF.K RUP4
by bcooper
10/03/10 06:50 PM
Pay_Action_Parameter
s

by John Akinyode
09/03/10 11:05 AM
Error ORA-01002: fetch out of sequence
by delboy
03/03/10 04:46 PM
Multiple html sessions opening
by MarinaH
03/03/10 12:16 AM
Tories to revamp PAYE system
by Geoff_Dixon
26/02/10 01:48 PM
Top Posters (30 Days)
CT 20
delboy 19
natkins 15
bcooper 14
MarinaH 14
SBi 10
gaztorres 8
Geoff_Dixon 7
Gus 4
Simon_Mc 3
(Views)Popular Topics
Family Pack K issues thread 5181
Review of my Release 12 laptop 3118
CREATE_GRADE api returns:PLS-00306: wrong number o 3089
Log-on problems for existing users 3003
Creating hr jobs ORA-20001: HR_289477_JOB_GROUP_ID 2348
October UK-OUG? 1967
Viewing Output of another user 1912
uploading bank branches to PAYROLL 1861
Still trying to locate... 1842
Family Pack K 1824
Topic Options
Rate This Topic
#5128 - 04/02/10 03:57 AM trunc(sysdate)
Gus Offline
hanger-on

Registered: 16/03/05
Posts: 56
Loc: Lapenne
Ok just need a quick confirmation here

Normally over the years and all over the place you will see code like

trunc(sysdate) between xxxx.effective_start_date
and xxxx.effective_end_date

Without the 'trunc' I think the code effectively creates a 1 day 'black hole' where the details will not be found due to the time portion of the date being used

Yes ??

Top
#5129 - 04/02/10 05:48 AM Re: trunc(sysdate) [Re: Gus]
MarinaH Offline
enthusiast

Registered: 21/08/05
Posts: 49
Loc: Away with the fairies
I understood that it removed the time stamp from the end of the date so that it included the entire day.

However, I am a funky and should no better than to answer a techy question (right Barn?) blush

Top
#5130 - 04/02/10 06:59 AM Re: trunc(sysdate) [Re: MarinaH]
CT Online   content
veteran
*****

Registered: 11/03/05
Posts: 751
Loc: Back at Fort Apache, Gosport!
Yes.

I refer my right honourable friend to the post below:

http://www.hcmaces.com/forums/ubbthreads..._Queri#Post1124
_________________________
L&K
CT

Top


Moderator:  CT, delboy 
March
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
Forum Stats
421 Members
48 Forums
1123 Topics
5227 Posts

Max Online: 15 @ 20/10/09 02:30 PM
Today's Birthdays
No Birthdays
Recent vacancies
Developer - Permanent - based in Bracknell
by Geoff_Dixon
Yesterday at 11:59 AM
Top Posters
bcooper 886
CT 751
Geoff_Dixon 340
delboy 255
SBi 249
vkumar 223
kp_rapolu 200
cbrookes 197
Gavin Harris 101
jhatten 95