Hello,
Best regards,
Jessica Marques
Hi Jessica,
In the SQL query, you missed the SELECT statement after the WITH clause...
SQL Snippet
with yearlist as ( select 2010 as year union all select y1.year + 1 as year from yearlist y1 where (y1.year + 1) <= YEAR(GetDate()) ) select year from yearlist order by year desc;
Hope this helps you!
Regards,
Benjith Sam
Benjith Sam wrote:
Hello Benjith Sam,
Thank you so much for your help, it worked perfectly.
Jessica Alessandra de Jesus Marques wrote:
You're most welcome :)
Glad I could be of help!