--- title: "Edit query for sensitive data change tracking" slug: "edit-query-for-sensitive-data-change-tracking" description: "Set up sensitive data change tracking by defining table fields and editing queries to monitor specific data changes effectively." tags: ["Task", "Security and Compliance Studio", "SCS"] updated: 2026-03-20T11:09:59Z published: 2026-03-20T17:44:30Z canonical: "docs.staedean.com/edit-query-for-sensitive-data-change-tracking" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.staedean.com/llms.txt > Use this file to discover all available pages before exploring further. # Edit query for sensitive data change tracking On the sensitive data change tracking setup, you define the table fields for which sensitive data changes must tracked. For each table that is defined in the **General** section of the **Sensitive data setup** page, a query is created automatically. If the defined table is a: - Common table, when the record is saved, the query is created. If the query already exists for the sensitive data setup, the query is automatically added to the record. - Date-effective table or an inheritance structure table, the query is created when the table is mapped to a related staging table. A query is applied on record level to the related table. You can edit an automatically created query. Usually, you edit a query only in specific cases. For example, if a table record has a type field, you can make the query type-specific. For the **LogisticsElectronicAddress** table, you can, for example, track sensitive data changes only for addresses that are marked as **Private**. To do so, add a range to the related query with the **Private** field, and **Criteria** set to **Yes**. ### Steps 1. Go to **Security and compliance** > **Setup** > **Sensitive data setup**. 2. In the **List pane**, find and select the desired sensitive data setup record. 3. In the **General** section, in the list, find and select the desired record. 4. In the **Query** section, click **Edit query**. 5. On the Inquiry dialog, make the desired changes to the query. Click **OK**. 6. Close the page.