This graphic shows a flow chart. The top box is "SQL Is Issued," which points to "Generate execution plan," which points to the diamond "Is this SQL tracked?" A "No" arrow points down to the "Add SQL ID to SQL statement log" box, which points down to the "Execute this plan" box.
A "Yes" arrow points right from the "Is this SQL tracked?" diamond to the "Does a SQL plan baseline exist?" diamond, whose "No" arrow points down to the "Create SQL plan baseline" box, which points down to the "Execute this plan" box.
The "Does a SQL plan baseline exist?" diamond "Yes" arrow points right to the "Does plan match plan in baseline?" diamond. This diamond has a "Yes" arrow that points up to the "Execute matched plan" box. The "No" arrow points down to the "Record this plan in SQL plan history" box, which points down to the "Execute a plan from SQL plan baseline" box.