microsoft / sql-server-samples

Azure Data SQL Samples - Official Microsoft GitHub Repository containing code samples for SQL Server, Azure SQL, Azure Synapse, and Azure SQL Edge
Other
9.97k stars 8.85k forks source link

Unpicked sales in WorldWideImporters database causes purchases to increase indefinitely? #1262

Open CallananD opened 7 months ago

CallananD commented 7 months ago

I am exploring this data a little to learn both SQL and PowerBI. From what I've seen, the generated purchases from suppliers are based on previously made orders by customers that have gone unpicked. However, 9 products seem to have unpicked orders from 2013 through to 2016 that seems to accumulate, leading to purchases on these stock items to keep increasing indefinitely. This issue was expounded when I ran the PopulateDataToCurrentData procedure.

Is this an issue on my end? I feel like these early orders should get picked at some stage and not be continually brought in to purchase calculations.