I have the following query I am trying to run:
select datefilled,
case len(timefilled)
when 7 then SUBSTRING(CAST(timefilled as varchar),1,1)
else SUBSTRING(CAST(timefilled as varchar),1,2)
end A
from ScriptHistory
where datefilled > getdate()-7
group by timefilled,datefilled
I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.