Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. SELECT TOP (100) PERCENT dbo.tMntPriceList.AsOfDate, dbo.tMasShift.ShiftName, dbo.tMasCustomer.CustomerCode, dbo.tMasCustomer.CustomerName,
  2. dbo.tMasProduct.ProductCode, dbo.tMasProduct.ProductName, dbo.tMntPriceList.UnitPrice
  3. FROM dbo.tMntPriceList INNER JOIN
  4. dbo.tMasCustomer ON dbo.tMntPriceList.RefID_Customer = dbo.tMasCustomer.RefID INNER JOIN
  5. dbo.tMasShift ON dbo.tMntPriceList.RefID_Shift = dbo.tMasShift.RefID INNER JOIN
  6. dbo.tMasProduct ON dbo.tMntPriceList.RefID_Product = dbo.tMasProduct.RefID
  7. ORDER BY dbo.tMntPriceList.AsOfDate, dbo.tMasShift.ShiftName, dbo.tMasProduct.ProductCode, dbo.tMasCustomer.CustomerName
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement