Advertisement
Fhernd

Receta_TSQL-2.5.sql

Jul 5th, 2015
978
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.34 KB | None | 0 0
  1. SELECT ProductID AS IDProducto, Name AS Nombre, ProductNumber AS NúmeroProducto, "Grupo" =
  2.     CASE
  3.         WHEN ReorderPoint >= 100 AND ReorderPoint <= 300 THEN 'Grupo A'
  4.         WHEN ReorderPoint >= 301 AND ReorderPoint <= 500 THEN 'Grupo B'
  5.         WHEN ReorderPoint >= 501 AND ReorderPoint <= 700 THEN 'Grupo C'
  6.         ELSE 'Grupo D'
  7.     END
  8. FROM Production.Product;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement