Dear All in this SQL code
DECLARE @n tinyint
WHILE (@n > 0)
BEGIN
SELECT @n AS 'Number'
,CASE
WHEN (@n % 2) = 1
THEN 'EVEN'
ELSE 'ODD'
END AS 'Type'
SET @n = @n - 1
END
How could I put union clause in this could to have the result shown in one result set?