Advertisement
Fhernd

Receta_TSQL-2.7_Ej2.sql

Jul 8th, 2015
1,049
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.41 KB | None | 0 0
  1. -- OrtizOL - xCSw - http://ortizol.blogspot.com
  2.  
  3. CREATE PROCEDURE ReporteLightBlue AS
  4. IF NOT EXISTS
  5.     (SELECT ProductID
  6.         FROM Production.Product
  7.         WHERE Color = 'lightblue')
  8.     BEGIN
  9.         -- Retorna 0 para indicar que no existen productos de color lightblue:
  10.         RETURN 0;
  11.     END;
  12.  
  13.  
  14. DECLARE @ValorResultado int;
  15. EXEC @ValorResultado = ReporteLightBlue;
  16. PRINT @ValorResultado;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement