Guest User

Untitled

a guest
Feb 22nd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. SELECT
  2. e.item_id as 'StockItem', SUM(e.quantity) as 'TotalStock' from item_quantities p,
  3. item_quantities e WHERE e.item_id = p.item_id and e.location_id = p.location_id
  4. GROUP By e.item_id
Add Comment
Please, Sign In to add comment