kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Fri Mar 04, 2011 1:07 pm Post subject: |
|
|
prog_mario,
Assuming you have both 1900 and 2000 dates use the following Untested sql which will give you the desired results
Code: |
SELECT CASE WHEN SUBSTR(DATE_COL,7,2) > '50'
THEN CHAR('19') || SUBSTR(DATE_COL,7,2)
ELSE CHAR('20') || SUBSTR(DATE_COL,7,2)
END ||
SUBSTR(DATE_COL,6,1) ||
SUBSTR(DATE_COL,1,3) ||
SUBSTR(DATE_COL,4,2)
FROM Table
;
|
Kolusu |
|