If you open the Custom SQL window in a query that has a derived table topic, the SQL for the derived table is shown in the custom SQL window as part of the overall query. At this point, the SQL is locked; changes in the source query section for the derived table are not reflected in this SQL until such time as the user presses the Reset button. When you process the query with the Custom SQL window open, it is executed “as is”.