Generate a set or sequence without loops – part 1 – SQLPerformance.com