I am having a little difficulty with the below code - it return the value I am after, but I need the value 3 digits long - i.e. it returns '1' but I need '001' - any help would be gratefully received
select convert(varchar(3),(select count(ptMatter) + 1 from lamatter where
convert(varchar(10), getdate(), 103)=convert(varchar(10), dateadd, 103)))