TSQL Challenge 56




TSQL Challenge 56 - Create a Sierpinski carpet using TSQL

This challenge invites you to generate a Sierpinsky carpet using TSQL. If you are new to Sierpinsky Carpet, see the details here (http://en.wikipedia.org/wiki/Sierpinski_carpet).

Your job is to read the input table and generate a Sierpinsky carpet of the specified level. The sample input data for this puzzle is given below.