SQL Puzzle 10: Print a Right-Angled Triangle from a Word

SAS
0

Given a word (e.g., 'FABRICOFDATA'), write a SQL query to output each row of a right-angled triangle, where each row displays the first N characters of the word



Expected Output:

Try solving the question yourself! If you need help, click below to reveal the solution.





Tags:

Post a Comment

0Comments

Post a Comment (0)

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Check Now
Ok, Go it!