Skip to content
Advertisement

Calculate Profit Based on First-In, First-Out Pricing By Date Of Sale

How can I find the sales margin every Day via SQL, assuming they are sold in the order they were purchased? enter image description here

Advertisement

Answer

Please try this solution –

group by sale_date

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement