Synacor interview question

SQL and PHP Questions