I need to filter based on a timestamp and would like to get everything within a certain day. The timestamps are like this: 02/06/2014 7:45:59 AM
or translated 2014-02-06 07:45:59
select *
from P_FAR_SBXD.T_CLAIM_SERVICE_TYP_DIM
where service_type_id = 134469888 and valid_from_tsp not like '2014-02-06 %'
When I run this query, I am returned the error: Partial String matching requires character operands
Upon searching this error, I was given The user used the partial string matching operator (LIKE) with an argument that was not a character string.
So what can I use to match a date? edit: or in this case, not a date?