
31/08/2004, 20:14
|
 | | | Fecha de Ingreso: noviembre-2002 Ubicación: Por ahí en algún sitio
Mensajes: 1.844
Antigüedad: 22 años, 3 meses Puntos: 1 | |
Pues alla les va Así es como me quedo la consulta dedspués de tantos problemas. Cita: SELECT TOP 1 *, DATEPART(dd,fecha_publicacion) as dia, DATEPART(mm,fecha_publicacion) as mes, DATEPART(dw,fecha_publicacion) as semana, DATEPART(yyyy,fecha_publicacion) as year, RIGHT(CONVERT(nvarchar, fecha_publicacion), 2) AS modo, REPLACE(LEFT(RIGHT(CONVERT(nvarchar, fecha_publicacion), 7), 5), ' ', '') AS hora FROM jcgrm_noticias WHERE importancia = 10 and visible<>0 order by newid() Salu2
__________________ Ing. Reynier Pérez Mira
Última edición por Reynier; 31/08/2004 a las 20:15 |