Advertisement
Guest User

Untitled

a guest
Oct 18th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 1.44 KB | None | 0 0
  1. SELECT TOP 10000000 k.sysmodified,
  2.                     k.id,
  3.                     LTRIM(RTRIM(k.budget))    AS budget,
  4.                     k.YEAR,
  5.                     LTRIM(RTRIM(k.MONTH))     AS MONTH,
  6.                     k.amount,
  7.                     k.quantity,
  8.                     itemcode,
  9.                     k.resource,
  10.                     k.itemcodedescription,
  11.                     LTRIM(RTRIM(k.debcode))   AS debcode,
  12.                     LTRIM(RTRIM(k.warehouse)) AS warehouse,
  13.                     k.project,
  14.                     k.unitcode                AS costunit,
  15.                     k.costcenter
  16. FROM   kstoregap2fill k (nolock)
  17.  
  18. SELECT TOP 10000000 ioddashsboardvendas.id,
  19.                     LTRIM(RTRIM(warehouse)) AS warehouse,
  20.                     itemassortment,
  21.                     artigo,
  22.                     iccode1,
  23.                     iccode2,
  24.                     iccode3,
  25.                     iccode4,
  26.                     iccode5,
  27.                     iccode6,
  28.                     iccode7,
  29.                     iccode8,
  30.                     iccode9,
  31.                     iccode10,
  32.                     LTRIM(RTRIM(debnr))     AS debnr,
  33.                     ioddashsboardvendas.res_id,
  34.                     bkjrcode,
  35.                     MONTH,
  36.                     DAY,
  37.                     ( credit - debit )      AS Valor,
  38.                     aantal
  39. FROM   ioddashsboardvendas (nolock)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement