| Convert date to numeric [message #567912] |
Mon, 08 October 2012 05:17  |
 |
SteveShephard
Messages: 25 Registered: August 2012
|
Junior Member |
|
|
Hi everyone,
I currently have a field which stores a date (date employer started with the company). I want to create a view which stores this as number of days employed (e.g if star date 1st October view will say 8). Does anyone know how to convert a date to a number?
Thanks
Steve
[EDITED by LF: disabled smilies in this message]
[Updated on: Mon, 08 October 2012 05:21] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: Convert date to numeric [message #567975 is a reply to message #567966] |
Mon, 08 October 2012 16:58   |
cookiemonster
Messages: 9170 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
The above trigger will only create new records in COMPANY_PERSON_ALL with free_field4 populated and all other columns null.
It's an instead of trigger, the code it executes happens instead of anything else.
So that insert needs to include more columns and and will be needing an update trigger as well.
However, the requirement makes no sense. Why are you trying to store a value that's constantly changing?
|
|
|
|
|
|
|
|