MySQL Forums
Forum List  »  Spanish

Re: Necesito ayuda con el modelado de una BD
Posted by: Jesús Uzcanga
Date: July 28, 2014 02:38PM

Juan.

La forma más óptima de hacer esto es en una única tabla, agregando un nuevo campo que indíque el tipo de documento, y para el cálculo de la existencia (cantidades) o de los montos de venta y devolución solo agregas otro campo identificador que sea 1 ó -1 para multiplicar por lo montos agrupados por tipo de documento.

___________________________
Ing. Jesús Alfredo Uzcanga
Twitter: @JesusUzcanga

We learn the 20% of what we HEAR,
the 50% of what we SEE,
the 80% of what we DO and
the 95% of what we TEACH.

____________________________________________________________
https://www.linkedin.com/in/jauzcanga/

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Necesito ayuda con el modelado de una BD
1077
July 28, 2014 02:38PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.