Avoid using empty SELECT ... ENDSELECT loop BETA | CAST Appmarq