LTM Limited Interview Question

Write a program to reverse integer. Write sql queries on the given data set