Change in SQL for Events