Titulacion

Páginas: 4 (785 palabras) Publicado: 5 de noviembre de 2012
Instituto Superior Tecnológico “Nasca”
Computación e Informática

1. Record de compras, el informe debe mostrar en orden descendente el total en soles por compras efectuadas por los clientes encada mes.
RECORD DE CLIENTE

CLIENTE TOTAL
MES: ENERO
XXXXXXXXXX 9999999
XXXXXXXXXX 9999999
XXXXXXXXXX 9999999
TOTAL 9999999

vista de SQL

create viewprereporte1 as (select concat(apelcliente,' ',nomcliente) as cliente,
month(fecha)as mes , monthname(fecha) as meses,
cantidad*precio as total
from cliente inner join factura oncliente.pk_cliente=factura.fk_cliente
inner join detalle on factura.pk_factura=detalle.pk_factura
group by cliente order by mes)

vista de MYSQL

CREATE VIEW REPORTE1 AS ( select Concat(cliente.apelcliente,'',cliente.nomcliente) as cliente,month(fecha)as mes, monthname(fecha) as meses ,
sum(cantidad*precio) as total from cliente inner join
factura on cliente.pk_cliente=factura.fk_cliente inner joindetalle on factura.pk_factura=detalle.pk_factura
group by cliente order by mes)




















2. Un Registro de Ventas
(Se necesita la tabla detalle y factura)


MYSQLSelect factura.pk_factura ,detalle.precio,(detalle.precio*0.18) as igv ,detalle.precio*1.18 as p_venta,
month (fecha)as mes, monthname(fecha) as meses ,day(fecha) as dia
fromfactura inner join detalle on factura.pk_factura=detalle.pk_factura
order by mes
REGISTRO DE VENTAS


DÍA FACTURA V. VENTA IGV P.VENTA
MES: ENERO
99 99999 99999 999 999999 99999 99999 999 9999
99 99999 99999 999 9999
TOTAL 9999 99999 9999

MES: FEBRERO
99 99999 99999 999 9999
99 99999 99999 999 9999
99 99999 99999 999 9999TOTAL 9999 99999 9999




























3. Detalle de las comisiones de cada vendedor:
TABLA VNDEDOR,FACTURA,DETALLE------------------LA COMISION 10%...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Titulacion
  • Titulacion
  • Titulacion
  • Titulacion
  • Titulación
  • Titulacion
  • Titulacion
  • Titulacion

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS