Hi i have a table
TABLE T1(ID NUMBER, SET_DATE DATE)
I want to select id values from this table by comparing year present in set_date field.
For that i wrote
select id from t1 where set_date like '%2010%' ;
It's returning no rows.
But the following code is working
select id from t1 where set_date like '%10%' ;
Though second code is working there is a demerit in both these code because i am not specifying to match year.It's quite possible that 10 may be present any where else, and this query will return all those rows.So how to filter rows according to year?