SC#QCADOOMES-1621 Added missing sql.