Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/10/2006, 10:49
jailyn
 
Fecha de Ingreso: septiembre-2006
Mensajes: 16
Antigüedad: 17 años, 8 meses
Puntos: 0
Help Me con un Select


Hola Amigos,

Me podrian ayudar ya que estoy haciendo una consulta, pero tarda demasiado o se va por tiempo, la que estoy haciendo es la siguiente, segun yo mi problema es por las fechas, pero no entiendo:

SELECT cat_records_agencies.file_name_batch
FROM filter_par_process
INNER JOIN cat_records_agencies
ON filter_par_process.folio = cat_records_agencies.folio
where (CONVERT(datetime, filter_par_process.reg_date_submit_file, 101) >= convert(datetime, @date_start,101)
and CONVERT(datetime, filter_par_process.reg_date_submit_file, 101) <= convert(datetime, @date_end ,101))
and riGht(cat_records_agencies.file_name_batch, 3) = 'txt'
GROUP BY cat_records_agencies.file_name_batch
order by cat_records_agencies.file_name_batch