It seems there’s no way to do the following in SQL: