Advertisement
yatahaze

PavloSheichenko

Feb 6th, 2023
958
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.14 KB | None | 0 0
  1. SELECT OrderID, (SELECT sum(p.Quantity) FROM OrderDetails WHERE Quantity = p.Quantity) as "Total Quantity" FROM OrderDetails p Group by OrderID
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement