Advertisement
perchslayer

step_04_max_vendor_632734_exp

Jun 19th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.42 KB | None | 0 0
  1. select wonum
  2.      , projectname
  3.      , status
  4.      , description
  5.      , jpnum
  6.      , supervisor
  7.      , location
  8.      , assetnum
  9.      , actfinish
  10.      , reportedby
  11.      , reportdate
  12. from workorder
  13. where istask = 0
  14. and commoditygroup = 'ENG'
  15. and commodity = 'DES'
  16. and status not in ('CAN', 'NWA')
  17. and vendor = '632734'
  18. and projectname IS NOT NULL
  19. and (actfinish > DATEADD(year,-1,GETDATE()) OR actfinish IS NULL);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement