Answers for "Algorithm to return all combinations of k elements from n"
https://ask.sqlservercentral.com/questions/98075/algorithm-to-return-all-combinations-of-k-elements.html
The latest answers for the question "Algorithm to return all combinations of k elements from n"Answer by ThomasRushton
https://ask.sqlservercentral.com/answers/98076/view.html
This is very similar to a [question that was asked here][1] recently. ish.
I suggested the OP then have a look at the [non-Phil Factor Speed Phreak][2] competition.
And @Kevin Feasel suggested a look at [Paul White's answer to a similar question on http://DBA.StackExchange.Com][3]
[1]: http://ask.sqlservercentral.com/questions/96364/sql-query-permutations-without-repetition.html
[2]: http://ask.sqlservercentral.com/questions/3045/the-word-permutation-sql-problem.html
[3]: http://dba.stackexchange.com/questions/29661/sql-query-for-combinations-without-repetition/29666#29666Fri, 01 Feb 2013 17:36:01 GMTThomasRushton