Select from instancemodificationevent within 60 where. Select в select. case sql. insert case sql. select case mysql сложные запросы.