WITH ListYear AS
( SELECT 1913 AS YEAR
UNION ALL
SELECT lyear.YEAR + 1 AS YEAR
FROM ListYear lyear
WHERE lyear.YEAR + 1 <= YEAR(GetDate())
)
SELECT YEAR FROM ListYear ORDER BY YEAR DESC;
SQL Performance Dashboard Reports
Há 4 anos
0 comentários:
Enviar um comentário