Sql different versions of compatibility