Alphabet triangle strikes again


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

USE master;

WITH n(n)as(SELECT number FROM spt_values WHERE'P'=type)SELECT(SELECT char(65+(n+x.n*x.n)%26)FROM n WHERE n<=x.n*2FOR xml path(''),type).value('.','char(51)')FROM n x WHERE n<26

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results