Data in AM/PM [message #624437] |
Mon, 22 September 2014 14:19 |
|
kr1347
Messages: 16 Registered: September 2014
|
Junior Member |
|
|
Hi
Below is the code and output .. I want output to be displayed as 8:15 AM 5:00 PM
SELECT DISTINCT
FCLT_ID,
3 ,
min(trim(replace(LOWER(OFC_START_TM_TUE_TX),'abcdefghijklmnopqrstuvwxyz','')))||'AM' START_TIME,
MAX(trim(replace(LOWER(OFC_CLOSE_TM_TUE_TX),'abcdefghijklmnopqrstuvwxyz','')))||'PM' CLOSE_TIME
FROM NXPEPND1.TPN_STAGING_PRVDR_LOC
where OFC_START_TM_TUE_TX is not null and OFC_CLOSE_TM_TUE_TX is not null
and FCLT_ID = '2842130'
GROUP BY FCLT_ID
[Updated on: Mon, 22 September 2014 14:43] by Moderator Report message to a moderator
|
|
|
|
|
|
|