Query select from table. Update sql синтаксис. row number sql синтаксис. вернуть одну строку sql. if в select sql.