Quantcast
Channel: Query con filtro por fecha
Viewing all articles
Browse latest Browse all 14

Query con filtro por fecha

$
0
0

Cuantos registros tienes en tu tabla ?? 

La tienes indexada por este campo ?

El filtro de la fecha metela en el INNER JOIN para agilizarla un poco más, así

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
and t.Fecha >  '2012-10-01'


Sergio Sánchez Arias


Viewing all articles
Browse latest Browse all 14

Trending Articles