Advertisement
Guest User

Untitled

a guest
May 27th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.32 KB | None | 0 0
  1. select
  2.     Product.ProductCode,
  3.     (
  4.     select
  5.         Price.QuantityX,
  6.         Price.QuantityY,
  7.         Price.Price
  8.     from
  9.         Genesis.ProductPriceGrid2D as Price
  10.     where
  11.         Product.ProductCode = Price.ProductCode
  12.     for xml auto, Type
  13.     )
  14. from
  15.     Genesis.ProductPriceGrid2D as Product
  16. group by
  17.     Product.ProductCode
  18. for xml auto, root('Products')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement