HI,@visakkh16...I'll asnwer my other mail later or tomorrow:)I've got just a little issue with a CTE..I want create some temporarly table which i can use...I need two..one with the last day of each month...and another with the last day of a quarter;WITH testtable(test)AS ( select '31/01/' union all select '28/02/' union all select '31/03/' union all select '30/04/' union all select '31/05/' union all select '30/06/' union all select '31/07/' union all select '31/08/' union all select '30/09/' union all select '31/10/' union all select '30/11/' union all select '31/12/'), months(date1)AS ( select '31/03/' union all select '30/06/' union all select '30/09/' union all select '31/12/'), quarters(date1)AS ( select test from testtable)select * from months
now when I do the select on table month...I get all values from table quarter...Does anybody know why?Kind regards,Lara