All statements within the selection block, which may include other "select" statements, will be processed for each row of <table> that passes the "where" criteria. Rows are retrieved and processed in the order specified by the "sort" clause. For example, the statements
yesterday = report_date - 1 select from measures where M_date = yesterday . . . end select
selects all measurements from the day before the report date.