Hi LHradowy,
You can select the COMPLETED_DT from the table with the comparison operator 'like' with the pattern match character '_' or '%'.
The '_' in the pattern match matches exactly one character, and '%' can match zero or more characters except null.
Here are few examples that I tried with your data.
Select the records that has COMPLETED_DT between '20060430' and '20060501'. As you can see there is only one record. If you need 20060501 included then give bweteen '20060430' and '20060502'
SQL> select COMPLETED_DT from table where COMPLETED_DT between '20060430' and '20060501';
COMPLETED_DT
----------------------------------------
20060430AprSun010335010335AM
Select the records that has COMPLETED_DT starts from 20060428, i.e that date and any time for that date. As you can see your data has 3 records with Date 20060428 and different times. Here is the output.
SQL> select COMPLETED_DT from table where COMPLETED_DT like '20060428%';
COMPLETED_DT
----------------------------------------
20060428AprFri103723103723AM
20060428AprFri104758104758AM
20060428AprFri162216042216PM
Select the records that has COMPLETED_DT between â 20060430â and â 20060501â in a formatted way like date and time components
SQL> select substr(cdt,1,14)||' '||substr(cdt,21,8) from indira where cdt between '20060430%' and '20060501%';
SUBSTR(COMPLETED_DT
------------------------
20060430AprSun 010335AM
Select the records that has COMPLETED_DT between â 20060430â and â 20060501â in a more formatted way to get the date, Month, Week-day and time separately.
SQL> select substr(COMPLETED_DT,1,8)||' '||substr(COMPLETED_DT,9,3)||' '||
substr(COMPLETED_DT,12,3)||' '||substr(COMPLETED_DT,21,2)||':'||
substr(COMPLETED_DT,23,2)||':'||substr(COMPLETED_DT,25,2)
from table where COMPLETED_DT between '20060430%' and '20060501%'
SUBSTR(COMPLETED_DT
--------------------------
20060430 Apr Sun 01:03:35
I hope this helps
Indira A
Never give up, Keep Trying