Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 0.57 KB | None | 0 0
  1. SELECT
  2.         T3.[ItemCode],
  3.         T3.[ItemName],
  4.         T2.[WhsCode],
  5.         T2.[WhsName],
  6.         T0.[SL1Code],
  7.         T0.[Descr],
  8.         T1.[OnHandQty],
  9.         T3.[SalUnitMsr]
  10.     FROM
  11.         OBIN T0
  12.     INNER JOIN
  13.         OIBQ T1 ON T0.[AbsEntry] = T1.[BinAbs] AND T0.[WhsCode] = T1.[WhsCode]
  14.     INNER JOIN
  15.         OWHS T2 ON T1.[WhsCode] = T2.[WhsCode]
  16.     INNER JOIN
  17.         OITM T3 ON T1.[ItemCode] = T3.[ItemCode]
  18.     WHERE
  19.         T1.[OnHandQty] > 0
  20.         AND T0.[SL1Code] = :SL1Code
  21.     ORDER BY
  22.         T3.[ItemCode] ASC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement