Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- OrtizOL - xCSw - http://ortizol.blogspot.com
- CREATE PROCEDURE ReporteLightBlue AS
- IF NOT EXISTS
- (SELECT ProductID
- FROM Production.Product
- WHERE Color = 'lightblue')
- BEGIN
- -- Retorna 0 para indicar que no existen productos de color lightblue:
- RETURN 0;
- END;
- DECLARE @ValorResultado int;
- EXEC @ValorResultado = ReporteLightBlue;
- PRINT @ValorResultado;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement