Link to home
Start Free TrialLog in
Avatar of saibsk
saibsk

asked on

Sybase searching for date

I have a column in sybase table which has column values in this format

ABC TECH (11/09/09)*
CDE INC
FEG SYNC (11/09/10)*

I need to find all the records which have date in parenthesis followed by *. Please advise
ASKER CERTIFIED SOLUTION
Avatar of rbride
rbride

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial

simpler one would be:

WHERE myCol LIKE '%)*'
Avatar of rbride
rbride

@pg_vinod: your solution will find all rows where the field ends in )* including those that do not match the search criteria, such as "(abc)*"

My solution is not 100% sufficient because it will also find columns where date is invalid. To check that something really is a date is a whole chapter in itself.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.