3 ms·
I'm only passingly familiar with SQL, can anyone explain?
by tgb 6y ago
I'm only passingly familiar with SQL, can anyone explain?
- headalgorithm 6y agoEssentially the FROM part calculates how many of each item has been sold today and then uses this amount to reduce how many are currently in stock (the UPDATE and SET parts).
- tgb 6y agoI see what it's doing but I don't really see what the benefit is. Maybe a comparison to what previously had to be done would help me? Would you have to make the 'daily' table in a separate step and then UPDATE using that?