Question : I'm trying to use LIKe to return all "-"

Ian a table there is normat text and then values as 0000-0800, 0800-1600 or 2200-0600

The text can be anyhting from BLP to ACC  or AL etc..

What I'm trying to do is return the 0000-0800 values and these are always entered as ####-####

And I'm trying to use
and a.mon_job like '%-%' with no success

Does anyone have any ideas?

Answer : I'm trying to use LIKe to return all "-"

select * from yourtable
where mon_job like '%-%' works for me?
Random Solutions  
 
programming4us programming4us