Agilysys Interview Question

Asked me to write code logic and SQL queries