Antra Interview Question

SQL query, print 1 to 9