MAQ Software interview question

Based on SQL and Stored Procedures