with cte
as 
(
  select 0 as ID
  union all
  select id+2 from cte
  where id<50
)
select * from cte 
by