58.1.3 Query Store: E Button to edit Set Names
Wherever you see a Set Name, you will also see the following button:
Click on this button and you will see one of the following dialog boxes:
When STATIC creates a new Set Name, it follows a strict convention:
1 Every Set Name created for a Master Query has a prefix, default is M.
2 Slave Queries do not have a prefix.
3 The main body of the name is the name of the Table that the Set belongs to as default.
4 Every Set has a Postfix composed of a unique number.
Once the Set is created you can edit it using these dialogues. You can set the body of the name to whatever you choose. If the Set is within a Master Query area, then the name can have a single letter prefix. The postfix must be a number. If you remove the prefix from a Master Set Name, STATIC will just replace it with a M.
Once you click OK, STATIC will change the original name to the new name for EVERY instance of that Set Name within your Queries.
If you had created a Set named M_AlmostComplete_123 and used this Master Set within many Slave queries in a Summary Report and then changed the name of this Set to S_Final_456, every occurrence of M_AlmostComplete_123 in both the Master and Slave queries will be changed to S_Final_456.
If a Slave Set called NeverComplete_123 is to be renamed to Complete_456, then the set name is only changed within the Slave Query currently being edited - even if the same set name occurs within another Slave Query elsewhere in the Summary report.
If a Master Set Name is changed within a Slave Query, then the name is changed for every occurrence in both the current Slave Query, the Master Query and in any other Slave Query that it appears.
In other words, Master Query Set Names are changed globally, while Slave Query Set Names are changed locally.
Note: Be careful when changing Set names, it may have unintended consequences.
If you change the name of a Set to the same name of another Set, then the two become logically linked. You will not be able to change the name again without also changing the name of the Set that has become linked to the Set you are changing. This may be what you want. But if it is not, it can have unfortunate consequences especially if the Set in question is a Master Set and used by many Slave Queries - to rectify this could be very tedious.
|