Fast Formula To Calculate Seniority Dates
Fast Formula To Calculate Seniority Dates
» Click Submit, and then click Compile to check whether the fast formula is valid.
SELECT C.BASE_CONTEXT_NAME
FROM FF_FORMULA_TYPES_B T
, FF_FORMULA_TYPES_TL TTL
, FF_FTYPE_CONTEXT_USAGES U
INPUTS ARE
EFFECTIVE_START_DATE (DATE),
EFFECTIVE_END_DATE (DATE),
SENIORITY_DATE_CODE (TEXT),
SENIORITY_BASIS (TEXT),
CUMULATIVE_FLAG (TEXT),
BASE_SENIORITY_DATE (DATE),
PREVIOUS_SENIORITY_EXIT_DATE (DATE),
SENIORITY_LEVEL_OBJECT_ID (NUMBER),
SENIORITY_TRIGGERING_FIELD_CODE (TEXT),
ACTION_CODE (TEXT),
CHANGED_VALUE_NEW (TEXT),
CHANGED_VALUE_OLD (TEXT),
SENIORITY_LEVEL_CODE (TEXT),
TOTAL_SENIORITY_HOURS (NUMBER),
PREVIOUS_TOTAL_SENIORITY_HOURS (NUMBER),
SENIORITY_DATE (DATE),
LEGALEGAL_EMPLOYER_ID (NUMBER),
LEGAL_EMPLOYER_NAME (TEXT),
ENTERPRISE_ID (NUMBER),
ENTERPRISE_NAME (TEXT),
BARGAINING_UNIT_CODE (TEXT),
BARGAINING_UNIT_NAME (TEXT),
GRADE_ID (NUMBER),
GRADE_NAME (TEXT),
GRADE_STEP_ID (NUMBER),
GRADE_STEP_NAME (TEXT),
JOB_ID (NUMBER),
JOB_NAME (TEXT),
POSITION_ID (NUMBER),
POSITION_NAME (TEXT),
UNION_ID (NUMBER),
UNION_NAME (TEXT),
RETURN_THRESHOLD = 6 /* month */
retain_expired = 'N'
compare_date = ADD_MONTHS(PREVIOUS_SENIORITY_EXIT_DATE, RETURN_THRESHOLD)
if EFFECTIVE_START_DATE > compare_date then (
retain_expired = 'Y'
)
blogs.oracle.com/oracle
facebook.com/oracle
twitter.com/oracle
oracle.com
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. This document is provided for information purposes only, and the
contents hereof are subject to change without notice. This document is not warranted to be error-free, nor subject to any other
warranties or conditions, whether expressed orally or implied in law, including implied warranties and conditions of merchantability or
fitness for a particular purpose. We specifically disclaim any liability with respect to this document, and no contractual obligations are
formed either directly or indirectly by this document. This document may not be reproduced or transmitted in any form or by any
means, electronic or mechanical, for any purpose, without our prior written permission.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and
are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are
trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group. 0918
CONNECT WITH US
blogs.oracle.com/oracle
facebook.com/oracle
twitter.com/oracle
oracle.com