Set a subet of events to occur within a specific amount of time independent of the overall timing.
When you define a pattern-matching query, you may need a subset of the events to occur within a specific amount of time independent of the overall timing. For example, perhaps front running is defined in your organization as a broker order being placed no more than two seconds before a valid order for the same stock, which must occur no more than 10 seconds after the customer order arrives.
Exercise
Complete the following exercise to explore additional pattern matching capabilities. See Solutions for a possible solution to this exercise.
Modify the query so that the pattern requires a row on Broker and on Cust, but in either order. See "MATCHING Clause" in the for information about the conjunction operator. Which row, identified by order number, is now included in the output stream that didn't match the pattern before this modification?