Bitwise Interview Question

print a pattern using c and 1 sql query