Advertisement
chrissharp123

Untitled

Jul 25th, 2018
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT copy."barcode" AS "Barcode",
  2.  acqlid."cancel_reason" AS "Cancel Reason"
  3.   FROM acq.lineitem_detail AS acqlid
  4.  INNER JOIN asset.copy AS copy ON (acqlid."id" = copy."id")
  5.   WHERE copy."deleted" = 'f'
  6.  AND copy."barcode" LIKE '%ACQ%'
  7.   GROUP BY 1, 2
  8.   ORDER BY copy."barcode" ASC, acqlid."cancel_reason" ASC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement