I want to select data from a column with between operator
Looks like this:
select count(distinct value)
from dbo.OrganizationSupplementalData
where value between 5 and 30;
but getting
Error converting data type varchar to numeric
I also tried using CAST but it doesn't work:
select count(distinct value)
from dbo.OrganizationSupplementalData
where cast(value as decimal(22, 8)) between 0.1 and 30.00;
In value column resides these types of data:
2017
2017
2017
2017
8:55:00 AM
11:00:00 AM
8:00:00 AM
8:45:00 AM
3.66
2.35
How can I eventually extract needed data? Thanks!