Tripearltech Interview Question

Aptitude questions. In coding:Create a given pattern and Solve SQL query.