hi
select increment = case when len(max(id) = 1then "0000" + max(id)
when len(max(id)) = 2 then "000"+ max(id)
end
from filesequence
i am getting error incorrect syntax near then
how to use above code properly
hi
select increment = case when len(max(id) = 1i am getting error incorrect syntax near then
how to use above code properly