Ver Mensaje Individual
  #5 (permalink)  
Antiguo 01/11/2010, 16:57
seyerben
 
Fecha de Ingreso: octubre-2010
Mensajes: 53
Antigüedad: 13 años, 6 meses
Puntos: 0
Respuesta: Consulta Fechas

ESTAS ES MI CONSULTA
$consulta=pg_query("SELECT tiendas.nombre,retarje.fechatr::DATE, to_char(div(sum(retarje.monto),100),'999,999,999,9 9') as total_monto
FROM ".$_SESSION['db_schema_data'].".tiendas ,".$_SESSION['db_schema_data'].".retarje WHERE (fechatr::DATE BETWEEN '".$FechaIniSel[0] ."' AND '".$FechFinSel[1]."',)
AND tiendas.idtienda = retarje.tienda AND tiendas.idplaza = retarje.plaza ORDER BY fechatr::DATE DESC");