Skip to main content

Query Library

Choose a question from a business process, then browse the same business topics used in Reports and Analytics. Each query appears once, with its objective, output grain, source tables, expandable SQL, and original-file download together.

Start with the guided paths below for a connected investigation, or search by question or table and select a business topic. Expand Interpret these results for topic-specific accounting guidance and Anomaly coverage where available. The guided query paths connect statement reconciliation and CAPEX steps without duplicating query cards.

Guided Paths and Query Catalog​

Guided Query Paths​

Follow these sequences when the question requires several linked queries. Each step links to its query in the catalog below.

Financial Statement Reconciliation Path

This sequence follows the statement tie from annual net income into retained earnings, then narrows into revenue reconciliation when the statement view and the operational view stop matching. Work through the queries in order so the bridge stays connected from statement to ledger to source document.

  1. Annual Income to Equity Bridge

    Start with the annual statement tie between net income, retained earnings, and the balance-sheet residual.

  2. Post Close Profit and Loss Leakage Review

    Then confirm that no revenue, expense, or 8010 balances remain open after the close.

  3. Round Dollar Manual Journal Close Sensitivity Review

    Use this sensitivity review only when a custom anomaly profile or manual edit leaves unexplained residuals after close.

  4. Annual Net Revenue Bridge

    Then move account by account into annual net revenue.

  5. Invoice Revenue Cutoff Exception Summary

    Open the cutoff summary when annual net revenue does not tie from source documents into the GL.

  6. Invoice Revenue Cutoff Exception Trace

    Then inspect the affected invoice lines, shipment lines, and revenue GL rows in detail.

CAPEX and Fixed Asset Path

This sequence starts in the fixed-asset subledger, then ties the asset lifecycle back into manufacturing cost, debt cash flows, and the budget roll-forward. Work through it in order so students keep the operational document chain separate from depreciation, note financing, and disposal accounting.

  1. Fixed Asset Rollforward by Behavior Group

    Start with the monthly rollforward by behavior group so manufacturing, warehouse, and office assets stay separated.

  2. Capex Acquisitions Financing and Disposals

    Then trace the lifecycle events behind each addition, financing choice, and disposal.

  3. Debt Amortization and Cash Impact

    Use the debt schedule next so principal, interest, and cash timing are explicit.

  4. Manufacturing Cost Component Bridge

    Then connect manufacturing-equipment depreciation back into manufacturing clearing and conversion cost.

  5. Cash Flow Statement Indirect Monthly

    Use the indirect cash flow statement to show how CAPEX moves into investing cash while note activity moves into financing cash.

  6. Pro Forma Cash Flow Indirect Monthly

    Finish with the pro forma cash flow to compare the explicit CAPEX and note schedule with the budget roll-forward.

All Queries​

Showing 170 of 170 queries

Statements and Cash​

Reconcile statements and close entries, explain cash and working capital, and trace accruals, assets, and debt.

Connect the evidence: Journals and Close · Accounting core tables · Estimate and settlement practice · Profit, cash, and close case

Interpret these results
  • Working-capital analysis gets stronger when students separate balances from timing.
  • Accrued-expense analysis should focus on 2040, PurchaseInvoiceLine.AccrualJournalEntryID, the service-item lines that settle finance-managed estimates, and the outbound-freight accrual and settlement pattern created from Shipment.FreightCost.
  • Year-end close entries are real posted journals and should be filtered when you want raw multi-year P&L activity.
  • The income-statement starter queries use pre-close P&L activity, so they exclude the year-end close journals that zero out revenue and expense accounts.
  • The balance-sheet starter queries are point-in-time ending-balance statements, not monthly activity reports.
  • The balance-sheet starter queries derive Current Year Earnings for interim periods so assets continue to tie to liabilities plus equity before the annual close moves earnings into retained earnings.
  • The indirect-method cash flow starter queries reconcile from pre-close net income into operating cash, then combine that with investing and financing cash movements.
  • The direct-method cash flow starter queries classify cash-ledger activity into teaching buckets such as customer receipts, supplier payments, payroll, and other operating cash.
  • The cash flow starter queries treat opening journals as the Beginning Cash seed for the first reporting period instead of showing them as operating, investing, or financing flows.
  • Warehouse and office fixed-asset depreciation debits 6130, which keeps those assets in operating expense even when they share the same broad fixed-asset lifecycle controls as plant equipment.
  • CAPEX additions, note-financing reclasses, debt payments, and disposals now sit in the same financial-analysis path, so students can reconcile the asset register to investing cash, financing cash, and gain-or-loss activity.
  • The budget model starts from BudgetLine, so students can move from forecast, planned price, standard cost, payroll, and timing assumptions into the summary Budget table and the pro forma statements.

Trial Balance by Period​

Download SQL

Journal and Close Cycle Review​

Download SQL

Control Account Reconciliation​

Download SQL

Accrued Expense Rollforward​

Download SQL

Accrued vs Invoiced vs Paid Timing​

Download SQL

Retained Earnings and Close Entry Impact​

Download SQL

Working Capital Bridge by Month​

Download SQL

Cash Conversion Timing Review​

Download SQL

Income Statement Monthly​

Download SQL

Income Statement Quarterly​

Download SQL

Income Statement Annual​

Download SQL

Balance Sheet Monthly​

Download SQL

Balance Sheet Quarterly​

Download SQL

Balance Sheet Annual​

Download SQL

Cash Flow Statement Indirect Monthly​

Download SQL

Cash Flow Statement Indirect Quarterly​

Download SQL

Cash Flow Statement Indirect Annual​

Download SQL

Cash Flow Statement Direct Monthly​

Download SQL

Cash Flow Statement Direct Quarterly​

Download SQL

Cash Flow Statement Direct Annual​

Download SQL

Annual Income to Equity Bridge​

Download SQL

Post Close Profit and Loss Leakage Review​

Download SQL

Round Dollar Manual Journal Close Sensitivity Review​

Download SQL

Pro Forma Income Statement Monthly​

Download SQL

Pro Forma Balance Sheet Monthly​

Download SQL

Pro Forma Cash Flow Indirect Monthly​

Download SQL

Budget vs Actual Statement Bridge Monthly​

Download SQL

Budget vs Actual Working Capital and Cash Bridge​

Download SQL

Fixed Asset Rollforward by Behavior Group​

Download SQL

Capex Acquisitions Financing and Disposals​

Download SQL

Debt Amortization and Cash Impact​

Download SQL

Budget vs Actual by Cost Center​

Download SQL

Cost Center Activity Summary​

Download SQL

Cutoff and Timing Analysis​

Download SQL

Over Under Accrual Review​

Download SQL

Accrued Service Settlement Exception Review​

Download SQL

Sales and Customers​

Investigate revenue, pricing, product margins, service billing, customer balances, commissions, and related controls.

Connect the evidence: Order-to-Cash · Sales and customer tables · Customer settlement practice · Customer account case · Design Services

Interpret these results
  • Revenue posts at invoicing. COGS posts at shipment.
  • CashReceipt does not equal settled AR by itself. Use CashReceiptApplication.
  • Explicit price-list, promotion, and override lineage lets students analyze revenue and margin against commercial rules.
  • The richer item master now supports collection, style family, lifecycle, and supply-mode financial analysis without changing the underlying posting model.
  • Customer deposits and unapplied cash analysis should start from CashReceipt and CashReceiptApplication, alongside AR.
  • Sales commission analysis should start from SalesInvoiceLine.LineTotal, then trace SalesCommissionAccrual, SalesCommissionAdjustment, SalesCommissionPaymentLine, and SalesCommissionPayment into 2034 and 6290.
  • Supply mode changes the meaning of cost analysis. Manufactured items can support both absorption and contribution-margin work because fixed overhead is stored separately.
  • Portfolio mix and profitability should be read together with service-level measures such as fill rate, shipment lag, and return pressure.
  • The dataset includes commercial-pricing coverage, so students can compare list price, resolved price-list pricing, promotions, overrides, and net realized margin without introducing a separate quote system.
  • Sales commissions are modeled as a separate selling-cost subledger, so students can compare commission expense by rep, segment, and revenue type without mixing it into payroll.
  • Pricing-control review should distinguish price-list master-data failures from transaction-level override and promotion-use failures.

Monthly Revenue and Gross Margin​

Download SQL

AR Aging Open Invoices​

Download SQL

Customer Credit and Refunds​

Download SQL

Customer Deposits and Unapplied Cash Aging​

Download SQL

Revenue and Gross Margin by Collection Style Lifecycle Supply Mode​

Download SQL

Price Realization vs List by Segment Customer Region Collection Style​

Download SQL

Gross Margin Impact of Promotions vs Nonpromotion Sales​

Download SQL

Annual Net Revenue Bridge​

Download SQL

Invoice Revenue Cutoff Exception Summary​

Download SQL

Invoice Revenue Cutoff Exception Trace​

Download SQL

Monthly AR Aging Detail​

Download SQL

Monthly AR Aging Summary​

Download SQL

Design Service Revenue and Billed Hours by Customer Month​

Download SQL

Sales Commission Payable Rollforward​

Download SQL

Sales Mix by Customer Region Item Group​

Download SQL

Basic Product Profitability​

Download SQL

Absorption vs Contribution Margin​

Download SQL

Manufactured vs Purchased Margin Comparison​

Download SQL

Backorder Fill Rate and Shipment Lag​

Download SQL

Returns and Refund Impact by Customer and Item​

Download SQL

Sales Margin by Collection Style Material​

Download SQL

Product Portfolio Mix by Collection Style Lifecycle Supply Mode​

Download SQL

Contribution Margin by Collection Material Lifecycle Supply Mode​

Download SQL

Customer Service Impact by Collection Style​

Download SQL

Portfolio Return Refund Impact by Collection Lifecycle​

Download SQL

Sales Rep Override Rate and Discount Dispersion​

Download SQL

Collection Revenue Margin Before After Promotions​

Download SQL

Customer Specific Pricing Concentration and Dependency​

Download SQL

Monthly Price Floor Pressure and Override Concentration​

Download SQL

Budget vs Actual Revenue Price Volume Cost Bridge​

Download SQL

Design Service Engagement Utilization and Labor Margin​

Download SQL

Sales Commission Expense by Rep Segment​

Download SQL

O2C Document Chain Completeness​

Download SQL

Backorder and Return Review​

Download SQL

Customer Deposits and Unapplied Cash Exception Review​

Download SQL

Sales Below Floor without Approval​

Download SQL
Anomaly coverage

Review focus: price-floor review

Expected anomaly types: sale_below_price_floor_without_approval, missing_price_override_approval

Trace flagged rows to their source documents before concluding that a control failed.

Expired or Overlapping Price List Review​

Download SQL
Anomaly coverage

Review focus: price-list validity review

Expected anomaly types: expired_price_list_used, overlapping_active_price_list

Trace flagged rows to their source documents before concluding that a control failed.

Promotion Scope and Date Mismatch Review​

Download SQL
Anomaly coverage

Review focus: promotion-scope review

Expected anomaly types: promotion_outside_effective_dates

Trace flagged rows to their source documents before concluding that a control failed.

Customer Specific Price List Bypass Review​

Download SQL
Anomaly coverage

Review focus: customer-price review

Expected anomaly types: customer_specific_price_bypass

Trace flagged rows to their source documents before concluding that a control failed.

Override Approval Completeness Review​

Download SQL
Anomaly coverage

Review focus: override-approval review

Expected anomaly types: missing_price_override_approval, sale_below_price_floor_without_approval

Trace flagged rows to their source documents before concluding that a control failed.

Design Service Approved vs Billed Hours Review​

Download SQL

O2C Line Trace Order Shipment Invoice​

Download SQL

O2C Source to GL Trace​

Download SQL

Purchasing and Inventory​

Trace purchasing and supplier settlement, compare inventory and supply reliability, and review AP and item-master exceptions.

Connect the evidence: Procure-to-Pay · Purchasing tables · Receipt-to-payable practice · Supplier obligations case

Interpret these results
  • Forecast, policy, and replenishment tables support planning-informed working-capital and inventory-timing analysis.
  • The item master supports collection, style family, material, finish, color, lifecycle, and supply-mode analysis inside the existing Item table.
  • Item-master review should distinguish current-state lifecycle and launch-date logic from operational usage timing.

AP Aging Open Invoices​

Download SQL

Monthly AP Aging Detail​

Download SQL

Monthly AP Aging Summary​

Download SQL

Inventory Movement by Item and Warehouse​

Download SQL

Purchasing Activity by Supplier Category​

Download SQL

Supplier Lead Time and Receipt Reliability​

Download SQL

Inventory Coverage and Projected Stockout Risk​

Download SQL

Expedite Pressure by Item Family and Month​

Download SQL

Supply Plan Driver Mix by Collection and Supply Mode​

Download SQL

P2P Document Chain Completeness​

Download SQL

Duplicate Payment Reference Review​

Download SQL
Anomaly coverage

Review focus: AP payment review

Expected anomaly types: duplicate_vendor_payment_reference, duplicate_supplier_invoice_number

Trace flagged rows to their source documents before concluding that a control failed.

Duplicate AP Reference Detail Review​

Download SQL
Anomaly coverage

Review focus: AP duplicate-reference review

Expected anomaly types: duplicate_vendor_payment_reference, duplicate_supplier_invoice_number

Trace flagged rows to their source documents before concluding that a control failed.

Item Master Completeness Review​

Download SQL
Anomaly coverage

Review focus: item-master completeness review

Expected anomaly types: missing_item_catalog_attribute

Trace flagged rows to their source documents before concluding that a control failed.

Discontinued or Prelaunch Item Activity Review​

Download SQL
Anomaly coverage

Review focus: item-lifecycle review

Expected anomaly types: discontinued_item_in_new_activity, prelaunch_item_in_new_activity

Trace flagged rows to their source documents before concluding that a control failed.

Item Status Alignment Review​

Download SQL
Anomaly coverage

Review focus: item-status alignment review

Expected anomaly types: item_status_alignment_conflict

Trace flagged rows to their source documents before concluding that a control failed.

Inactive or Stale Inventory Policy Review​

Download SQL
Anomaly coverage

Review focus: inventory-policy review

Expected anomaly types: inactive_policy_for_active_item

Trace flagged rows to their source documents before concluding that a control failed.

Recommendation Converted After Need by Date Review​

Download SQL
Anomaly coverage

Review focus: recommendation-timing review

Expected anomaly types: late_recommendation_conversion

Trace flagged rows to their source documents before concluding that a control failed.

P2P Invoice Line Trace Receipt vs Accrual​

Download SQL

P2P Accrual Journal Invoice Payment GL Trace​

Download SQL

Production and Planning​

Connect forecasts, material requirements, capacity, work orders, manufacturing cost, and production-control evidence.

Connect the evidence: Manufacturing · Production tables · Manufacturing cost practice · Production cost case

Interpret these results
  • Manufacturing-equipment depreciation debits 1090 Manufacturing Cost Clearing, so it belongs in manufacturing-cost interpretation rather than warehouse or office operating expense review.
  • The dataset includes a weekly planning layer, so students can compare forecast, policy, recommendation, and rough-cut capacity pressure before execution starts.
  • The current manufacturing model is still a foundation. It supports operations, labor, and contribution-margin analysis without switching inventory valuation to actual cost.
  • Demand-planning analysis is most useful when students connect DemandForecast, InventoryPolicy, SupplyPlanRecommendation, MaterialRequirementPlan, and RoughCutCapacityPlan in one analytical path.

Manufacturing WIP Clearing Variance​

Download SQL

Manufacturing Cost Component Bridge​

Download SQL

Forecast vs Actual Demand by Week Item Group Collection Lifecycle​

Download SQL

Recommendation Conversion by Type Priority Planner​

Download SQL

BOM Standard Cost Rollup​

Download SQL

Work Order Throughput by Month​

Download SQL

Material Usage and Scrap Review​

Download SQL

Production Completion and FG Availability​

Download SQL

Manufacturing Variance by Month Item Group​

Download SQL

Direct Labor by Work Order and Employee Class​

Download SQL

Unit Cost Bridge Dm Dl Varoh Fixedoh​

Download SQL

Labor Efficiency and Rate Variance​

Download SQL

Routing Master Review​

Download SQL

Work Center Activity and Operation Hours​

Download SQL

Daily Load vs Capacity​

Download SQL

Monthly Work Center Utilization​

Download SQL

Operation Delay and Bottleneck Review​

Download SQL

Backlog Aging by Work Center​

Download SQL

Rough Cut Capacity Load vs Available Hours​

Download SQL

Forecast Error and Bias by Collection Style Family​

Download SQL

Missing BOM or Supply Mode Conflict​

Download SQL

Over Issue and Open WIP Review​

Download SQL

Work Order Close Timing Review​

Download SQL

Download SQL
Anomaly coverage

Review focus: manufacturing linkage review

Expected anomaly types: missing_work_order_operations, invalid_direct_labor_operation_link

Trace flagged rows to their source documents before concluding that a control failed.

Operation Sequence and Final Completion Review​

Download SQL
Anomaly coverage

Review focus: operation sequence review

Expected anomaly types: overlapping_operation_sequence, completion_before_operation_end

Trace flagged rows to their source documents before concluding that a control failed.

Schedule on Nonworking Day Review​

Download SQL
Anomaly coverage

Review focus: capacity-calendar review

Expected anomaly types: scheduled_on_nonworking_day

Trace flagged rows to their source documents before concluding that a control failed.

Over Capacity Day Review​

Download SQL
Anomaly coverage

Review focus: capacity review

Expected anomaly types: overbooked_work_center_day

Trace flagged rows to their source documents before concluding that a control failed.

Completion Before Scheduled Operation End​

Download SQL
Anomaly coverage

Review focus: schedule-completion review

Expected anomaly types: completion_before_operation_end

Trace flagged rows to their source documents before concluding that a control failed.

Labor Outside Scheduled Operation Window Review​

Download SQL
Anomaly coverage

Review focus: labor timing review

Expected anomaly types: labor_after_operation_close

Trace flagged rows to their source documents before concluding that a control failed.

Forecast Approval and Override Review​

Download SQL
Anomaly coverage

Review focus: forecast-governance review

Expected anomaly types: missing_forecast_approval, forecast_override_outlier

Trace flagged rows to their source documents before concluding that a control failed.

Requisitions and Work Orders without Planning Support​

Download SQL
Anomaly coverage

Review focus: planning-support review

Expected anomaly types: purchase_requisition_without_plan, work_order_without_plan

Trace flagged rows to their source documents before concluding that a control failed.

Discontinued or Prelaunch Planning Activity Review​

Download SQL
Anomaly coverage

Review focus: planning-lifecycle review

Expected anomaly types: inactive_policy_for_active_item, missing_forecast_approval, forecast_override_outlier, late_recommendation_conversion

Trace flagged rows to their source documents before concluding that a control failed.

Released Work Orders Due without Actual Start Review​

Download SQL

Released Work Orders Due without Actual Start Summary​

Download SQL

Manufacturing Work Order Operation Trace​

Download SQL

Manufacturing Work Order Close GL Trace​

Download SQL

People and Payroll​

Follow workforce structure, rosters, punches, approved time, labor allocation, payroll, and employee-validity controls.

Connect the evidence: Payroll · Payroll and time tables · Hours-to-payroll practice · Staffing and payroll case

Interpret these results
  • Payroll register activity records liabilities first; cash leaves through payroll payments and remittances later.
  • The richer employee master now supports job-family, job-level, and people-cost review without requiring a separate HR-history subledger.
  • The employee master supports work location, job family, job level, employment status, and current-state active analysis without a separate HR-history model.
  • Work location and cost center answer different questions. Use both when students compare workforce structure to payroll or labor usage.
  • Workforce-planning analysis compares rostered hours, approved worked hours, absences, raw punches, and overtime approvals while retaining their different source grains.
  • Employee-master review should distinguish current-state IsActive from historical validity driven by HireDate and TerminationDate.

Payroll Liability Rollforward​

Download SQL

Gross to Net Payroll Review​

Download SQL

Payroll Cash Payments and Remittances​

Download SQL

Hourly Payroll Hours to Paid Earnings Bridge​

Download SQL

Payroll Expense Mix by Cost Center and Pay Class​

Download SQL

Payroll and People Cost Mix by Cost Center Job Family Level​

Download SQL

Shift Adherence and Overtime by Work Center​

Download SQL

Approved Clock Hours vs Labor Allocation​

Download SQL

Paid Hours vs Productive Labor by Work Center​

Download SQL

Headcount by Cost Center Job Family Status​

Download SQL

Labor and Headcount by Work Location Job Family Cost Center​

Download SQL

Staffing Coverage vs Work Center Planned Load​

Download SQL

Rostered vs Worked Hours by Work Center Shift​

Download SQL

Absence Rate by Work Location Job Family Month​

Download SQL

Overtime Approval Coverage and Concentration​

Download SQL

Punch to Pay Bridge for Hourly Workers​

Download SQL

Late Arrival Early Departure by Shift Department​

Download SQL

Payroll Control Review​

Download SQL
Anomaly coverage

Review focus: payroll settlement review

Expected anomaly types: missing_payroll_payment, payroll_payment_before_approval

Trace flagged rows to their source documents before concluding that a control failed.

Labor Time After Close and Paid without Time​

Download SQL
Anomaly coverage

Review focus: labor support review

Expected anomaly types: labor_after_operation_close, paid_without_clock

Trace flagged rows to their source documents before concluding that a control failed.

Time Clock Exceptions by Employee Supervisor Work Center​

Download SQL
Anomaly coverage

Review focus: attendance exception review

Expected anomaly types: missing_clock_out, duplicate_time_clock_day, off_shift_clocking

Trace flagged rows to their source documents before concluding that a control failed.

Paid without Clock and Clock without Pay Review​

Download SQL
Anomaly coverage

Review focus: payroll-time reconciliation

Expected anomaly types: paid_without_clock, missing_clock_out

Trace flagged rows to their source documents before concluding that a control failed.

Time Clock Payroll Labor Bridge Review​

Download SQL
Anomaly coverage

Review focus: workforce bridge review

Expected anomaly types: paid_without_clock, missing_clock_out, labor_after_operation_close

Trace flagged rows to their source documents before concluding that a control failed.

Terminated Employee Activity Review​

Download SQL
Anomaly coverage

Review focus: employment validity review

Expected anomaly types: terminated_employee_on_payroll, terminated_employee_approval, inactive_employee_time_or_labor

Trace flagged rows to their source documents before concluding that a control failed.

Terminated Employee Activity Rollup by Process Area​

Download SQL
Anomaly coverage

Review focus: employment rollup review

Expected anomaly types: terminated_employee_on_payroll, terminated_employee_approval, inactive_employee_time_or_labor

Trace flagged rows to their source documents before concluding that a control failed.

Current State Employee Assignment Review​

Download SQL
Anomaly coverage

Review focus: assignment ownership review

Expected anomaly types: inactive_employee_current_assignment

Trace flagged rows to their source documents before concluding that a control failed.

Scheduled without Punch and Punch without Schedule Review​

Download SQL
Anomaly coverage

Review focus: roster-punch review

Expected anomaly types: punch_without_roster, missing_final_punch

Trace flagged rows to their source documents before concluding that a control failed.

Overtime without Approval Review​

Download SQL
Anomaly coverage

Review focus: overtime approval review

Expected anomaly types: overtime_without_approval

Trace flagged rows to their source documents before concluding that a control failed.

Absence with Worked Time Review​

Download SQL
Anomaly coverage

Review focus: absence-time conflict review

Expected anomaly types: absence_with_worked_time

Trace flagged rows to their source documents before concluding that a control failed.

Overlapping or Incomplete Punch Review​

Download SQL
Anomaly coverage

Review focus: punch-sequence review

Expected anomaly types: missing_final_punch, overlapping_punch_sequence

Trace flagged rows to their source documents before concluding that a control failed.

Roster After Termination Review​

Download SQL
Anomaly coverage

Review focus: post-termination roster review

Expected anomaly types: roster_after_termination

Trace flagged rows to their source documents before concluding that a control failed.

Controls and Exceptions​

Review cross-process approvals, role assignments, authority limits, segregation of duties, and broad anomaly screening.

Connect the evidence: Process responsibilities and controls · Source traceability · BPMN and controls workshop · Exceptions and controls case

Interpret these results
  • The published default SQLite is anomaly-enriched when anomaly_mode is standard, so it is useful for teaching comparisons but not as the clean baseline for database-integrity reconciliation.
  • Exception-oriented queries are designed to return reviewable control patterns from the published dataset.
  • The GL remains balanced even when audit queries identify exceptions.
  • Source-table tracing should remain the final step in explaining each exception pattern.

Approval and SOD Review​

Download SQL

Potential Anomaly Review​

Download SQL
Anomaly coverage

Review focus: broad control screening

Expected anomaly types: weekend_journal_entry, same_creator_approver, same_creator_approver_journal, missing_approval, invoice_before_shipment, duplicate_vendor_payment_reference

Trace flagged rows to their source documents before concluding that a control failed.

Approval Role Review by Org Position​

Download SQL

Executive Role Uniqueness and Control Assignment Review​

Download SQL
Anomaly coverage

Review focus: executive-role review

Expected anomaly types: duplicate_executive_title_assignment

Trace flagged rows to their source documents before concluding that a control failed.

Approval Authority Review by Expected Role Family​

Download SQL
Anomaly coverage

Review focus: approval-role review

Expected anomaly types: unexpected_role_family_approval

Trace flagged rows to their source documents before concluding that a control failed.

Approval Authority Limit Review​

Download SQL
Anomaly coverage

Review focus: authority-limit review

Expected anomaly types: approval_above_authority_limit, unexpected_role_family_approval

Trace flagged rows to their source documents before concluding that a control failed.

Search and topic selections are kept in the URL for classroom links and Back/Forward recovery. A direct query link reveals the destination even if the current filters would hide it. If SQL cannot load, use Retry SQL or download its original file.

Build Your Analysis​

For accounting SQL practice, begin with connecting records to examine join keys and row grain, then finding accounting entries to trace source documents into GLEntry. These lessons prepare you to adapt the catalog examples without treating every matching row as independent evidence.

Start with the SQL Guide for a first query or Learn and Practice for a focused evidence trace. The cases provide structured investigations and assessed outputs.

Before comparing results, define the fiscal period, source population, row grain, sign convention, and filters. Keep the source records unchanged. Align dates and populations, retain document keys, and distinguish an exception flag from a supported accounting or control conclusion. The Schema Reference and Posting Reference support the final source-to-ledger check.