Use this command in combination with SELECT, CASE and ENDCASE to create a select statement. An endselect statement specifies the end of a select statement.