Sample Criteria Update
Overview
From time to time, Sample Criteria needs to be updated, whether to filter out unneeded audits or to bring in additional ones
Steps for Sample Method changes:
- Open up Sample Setup menu
- Find the relevant sample that needs updating and select it
- Copy the current Sample Method
- In CIWSQLXP1125 on the SOBI_QUALITY database, run script 1 with the copied sample method.
- If there is a part of the Sample Method containing d.LeadTeamName, delete that condition
- Apply the changes business requested in the Sample Criteria and run the query again to ensure nothing is wrong with the query.
- Update the Sample Method in Sample Setup with the next query, putting d.LeadTeamName condition back in if it was removed in step 4(i).
Steps for Sample Count changes:
- Open up Sample Setup menu
- Find the relevant sample that needs updating and select it
- Update the Sample Size field to whatever they need.
Steps for Sample deactivation:
Setting a sample's current status value to inactive affects reporting as it hides that sample's historical data. Instead we need to take a different approach
- Open up Sample Setup menu
- Find the relevant sample that needs updating and select it
- Copy the Sample Method and paste it into the comments. (For historical purposes)
- Update Sample Method to be blank
- Save
Script 1
select * from dbo.APP_CORR_SOBI_CALL_CLAIM
where task_end_date > (getdate() - 7) and -- sample method goes here