Azure-Samples / modern-data-warehouse-dataops

DataOps for Microsoft Data Platform technologies. https://aka.ms/dataops-repo
MIT License
588 stars 459 forks source link

[D6] - Create Archival SCORE Table for Stale Content #733

Closed ydaponte closed 1 month ago

ydaponte commented 2 months ago

As a Data Engineer, I want to create an Archival SCORE Table so that we can store and utilize the results of processing raw data to score and prioritize stale content for archiving.

Acceptance Criteria:

SQLZane commented 1 month ago

Created two objects first a rule table to capture the rules and record the responses for both the PowerBI an chatbot. CREATE TABLE IF NOT EXISTS RuleTable ( RuleID INT, RuleName STRING, RuleDescription STRING, Value STRING, ---Weight INT, Will be important to the finalized product but out of Scope for Hackathon PrescriptionStatement STRING ); I've also inserted some rules for reports older than 90 days.

I've also built the scoring table as well. CREATE TABLE IF NOT EXISTS ScoringTable( ItemID INT, --FK To Denormalized table in SQL DB Scenario RuleID INT, --FK to RuleTable Score INT );

These two items can be joined together and included with the denormalized table to gather any reporting information or details for the copilot. All of the code required is stored within the DenormalizedItemCollection Workbook.

SQLZane commented 1 month ago

I also added Item Type to the rule table so we can create specific rules per each type of Item.