AndreAraujo
Programmer
Hi, i have this stored procedure to return only values that are not null
i get error "incorrect syntax near the keyword then"
the idea is to return values that are not null, this sp is used in a crystal report , so when all values are null i supress the section.
Any ideas??
Thanks in advance
Andre
Code:
CREATE PROCEDURE list_serie
AS
SELECT Num, Line,
case Serie (isnull(serie,'') then '' else 'serie:' + serie, case Ref (isnull(ref,'') then '' else ' ref:' + ref,
case Marca (isnull(marca,'') then '' else 'marca:' + marca
FROM tbl_serie
the idea is to return values that are not null, this sp is used in a crystal report , so when all values are null i supress the section.
Any ideas??
Thanks in advance
Andre