Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. SELECT ProductID 'Identyfikator', [Name] 'Nazwa', ListPrice 'Cena sprzedaży', StandardCost 'Cena zakupu', color 'Kolor',
  2. (ListPrice-StandardCost) AS PROFIT,
  3. ((ListPrice-StandardCost)/StandardCost)*100 AS MARGIN,
  4. IIF(SellEndDate is null, 'true', 'false') AS ACTIVE,
  5. IIF(WeightUnit = 'LB', Weight*453.6, Weight) AS UNIWEIGHT,
  6. case when (ListPrice > 0 and ListPrice < 100) Then 'LOW'
  7. FROM [AdventureWorksLT_TI].[SalesLT].[Product]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement