Use the conversion
Code:
CAST (substr(start_dt,8,4) ||
CASE substr(start_dt,1,3)
WHEN 'Jan' THEN '01'
(etc.)
WHEN 'Dec' THEN '12'
END || substr(start_dt,5,2) AS DATE)
You can query your original table, but now referring to START_DT as a real DATE field, by placing the following subquery in the FROM clause of your query:
Code:
(SELECT col1, col2, *** AS start_dt, col4 FROM AFFILIATE_TB) AS new_tb
where you plug in the above CAST() in the place of the "***", and where I have assumed that AFFILIATE_TB has columns called col1, col2, start_dt, col4 in that order.