0
I am doing a service order control where in a service order several users will register products and labor, so I have three tables: - Order of service (master) - Products (detail) - Manpower (detail) The detail tables generate values that will have to represent a total in the master table, for example a total product value and a total labour value. I would like to know what is the best way to get this total value if it is using database query feature or it is better to loop using programming in the detail tables, remembering that the system will be multi-user.