I don't have a SQL 5.7 environment to solve this right now