Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/12/2012, 18:15
Avatar de nexus44
nexus44
 
Fecha de Ingreso: octubre-2012
Ubicación: Piura
Mensajes: 108
Antigüedad: 11 años, 6 meses
Puntos: 1
Sonrisa Procedimientos almacenados ayud4

Buenas amigos , en esta oportunidad vengo a pedir de su ayuda se lo agradeceria mucho.

Estoy trabajando con MySql Query Browser y necesito realizar estos procedimientos almacenados agradeceria mucho de su ayuda.

1-MOSTRAR EL PRODUCTO MAS COMPRADO EN UNA DETERMINADA FECHA

2.-MOSTRAR EL MONTO TOTAL COBRADO POR CADA FACTURA EN UN RANGO DE FECHA.

3.-MOSTRAR LOS CLIENTES QUE COMPRARON PRODUCTO EN UN RANGO DE FECHA

4.-MOSTRAR LOS CLIENTES QUE COMPRARON EL PLATO MAS CARO EN UN RANGO DE FECHAS.

5.-MOSTRAR EL REPARTIDOR QUE EFECTUÓ MAS REPARTICIONES EN UN DETERMINADO DÍA.

6.-MOSTRAR EL, MONTO TOTAL COBRADO POR UN DETERMINADO REPARTIDOR EN UN DETERMINADO DÍA.


BD: restaurant

Tablas :

cliente

campos :

cod_cliente , nombre , direccion , telefono

factura

nfactura ,cod_cliente ,direccion ,telefono,fecha ,ruc,repartidor ,subtotal ,igv, total

detalle_factura

nfactura ,codigo_plato,descripcion,cantidad,precio_unitario ,costo

Repartidor

cod_repartidor ,nombres ,apellidos ,direccion ,telefono

platos
codigo_plato,descripcion, precio_unitario


Agradeceria mucho su ayuda , alguna duda hacerme saber.
__________________

"Nuestra capacidad se aleja de la Humanidad"