SQL: Below SQL will give the age of an employee based on the birthdate.
Get link
Facebook
X
Pinterest
Email
Other Apps
-
select trunc((to_number(to_char(sysdate,'yyyymmdd'))-to_number(to_char(BIRTHDATE,'yyyymmdd')))/10000) AGE, BIRTHDATE from PS_DEP_BEN WHERE EMPLID = '6508';
Using below 1 and 2 we can display the current date and time on the bi report. 1) <?xdoxslt:current_date($_XDOLOCALE, $_XDOTIMEZONE)?> 2) <?xdoxslt:current_time($_XDOLOCALE, $_XDOTIMEZONE)?> 3) <?xdoxslt:sysdate(‘DD-MON-YYYY HH24:MI’)?>
<?xdofx:if substr(ACAD_PLAN,1,1) = 'C' then 'Los Angeles City College' end if?> <?xdofx:if substr(ACAD_PLAN,1,1) = 'H' then 'Los Angeles Harbor College' end if?> <?xdofx:if substr(ACAD_PLAN,1,1) = 'M' then 'Los Angeles Mission College' end if?> <?xdofx:if substr(ACAD_PLAN,1,1) = 'P' then 'Pierce College' end if?> <?xdofx:if substr(ACAD_PLAN,1,1) = 'S' then 'Los Angeles Southwest College' end if?> <?xdofx:if substr(ACAD_PLAN,1,1) = 'V' then 'Los Angeles Valley College' end if?> <?xdofx:if substr(ACAD_PLAN,1,1) = 'W' then 'West Los Angeles College' end if?> <?xdofx:if substr(ACAD_PLAN,1,1) = 'T' then 'LA Trade-Technical Colleg' end if?> <?xdofx:if substr(ACAD_PLAN,1,1) = 'E' then 'East Los Angeles College' end if?>;
Comments
Post a Comment