I have a stored procedure that does exactly what I want, but the presentation is not what I expected, or what I want it to be. This is the code:
DECLARE @deb