tengo la siguiente función :
CREATE FUNCTION [dbo].[F_FECHA_ABONOS] (@id_articulo int)
RETURNS VARCHAR
AS
BEGIN
-- Declare the return variable here
DECLARE @ts VARCHAR
-- Add the T-SQL statements to compute the return value here
SELECT @ts =ISNULL(convert(VARCHAR, recibo_abonos.fecha , 103), 0)
FROM dbo.recibo_abonos
where(recibo_abonos.id_articulo = @id_articulo) and (recibo_abonos.TipoRecibo = 8)
-- Return the result of the function
RETURN @ts
END
y quiero ver como concatenar las fechas en la variable @ts. De antemano muchas gracias
+
, algo asiISNULL(convert(VARCHAR, recibo_abonos.fecha , 103), 0) + ' ' + ISNULL(convert(VARCHAR, recibo_abonos.fecha2 , 103), 0)