on 12-10-2010 1:06 PM
Buenos Dias
Estuve Tratando las siguientes sentencia Para concatenar las fechas en una consulta, pero no me ha salido
SELECT T0.DocDate, T0.DocNum, T0.DocTotal, T0.Comments, Month(T0.DocDate) (signo)' , '(signo) Year(T0.DocDate)
FROM OINV T0
Tampoco asi
SELECT T0.DocDate, T0.DocNum, T0.DocTotal, T0.Comments, Month(T0.DocDate) (signo)' SPACE(1) '(signo) Year(T0.DocDate)
FROM OINV T0
Ni asi
SELECT T0.DocDate, T0.DocNum, T0.DocTotal, T0.Comments, Month(T0.DocDate) (Signo)' / '(Signo) Year(T0.DocDate)
FROM OINV T0
Alguien sabra como resolver esto?
Saludos
Atte.
FLR
Edited by: Floyola on Dec 10, 2010 10:32 AM
Buen dia
Trata esto
SELECT T0.DocDate, T0.DocNum, T0.DocTotal, T0.Comments,
'Mes ' + convert(varchar(12),Month(T0.DocDate),101) +' Año '+ convert(varchar(12),Year(T0.DocDate),101) as 'Fecha'
FROM OINV T0
Saludos.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.