[SQL] fix Quest 10368