Quantcast
Viewing latest article 14
Browse Latest Browse All 14

Query con filtro por fecha

hola a todos, buenas tardes como estan?

Tengo esta query que no toma en cuenta el filtro fecha:

select od.Numero, od.Item,od.IdTercero,od.situacion,t.Fecha from Core_Owner_Detalle od  inner join Core_Owner_Cabecera t on
od.Numero= t.Numero and od.IdTercero=t.IdTercero and od.situacion=t.situacion
where t.Fecha >  CAST('01/10/2012' AS DATETIME)

y me comienza a traer asi: 2012-03-17 00:00:00.000 desde el tres y yo pido que traida desde el 01/10/2012

tambien probe con:

01/10/2012

'01/10/2012'

01-10-2012

'01-10-2012'

CAST('01/10/2012' AS DATETIME)

CONVERT(datetime,'01/10/2012',120)

pero ninguno me trar los datos filtrados por fecha y lo necesito por que es muy grande la tabla y tarda horas.

Muchas gracias

0001-00000094 1 2667   0 2012-03-17 00:00:00.000 // esto en el primer registro que trae la consulta.


Viewing latest article 14
Browse Latest Browse All 14

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>