Guest User

Untitled

a guest
Jun 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. Tabla CLIENTE
  2. CAMPO TIPO
  3. DNI Char(10)
  4. Nombre Varchar(30)
  5. Apellido Varchar(30)
  6.  
  7.  
  8. Tabla Pedidos
  9. CAMPO TIPO
  10. npedido Numérico(4)
  11. fecha Datetime
  12. cantidad Numeric(8)
  13. monto Money
  14. Cliente_dni Char(10)
  15.  
  16. select nombre, sum(cantidad), sum(monto)
  17. from cliente, pedidos
  18. group by nombre
Add Comment
Please, Sign In to add comment