0
I am in a simple dilemma (I believe) I have 3 tables in question.. the Associated table and the Request table and the box. The associate fields are: id, ref_by, name .... The fields of the request are: pedido_id, pedido_client, pedido_date, pedido_status, pedido_total_product. The box fields are: id, id_client,client,id_doc,value,date
What I need to do is this: I need to enter in the box table, all orders that have the status 4. However I need to fill with the data: id_client, client (name), id_doc(order code), value (order value), date (order date).
Can someone who has understood my dilemma help me? Ahh.. remembering that it is all in mysql direct.
And what are the primary and foreign keys of your tables?
– anonimo
It is not clear what your doubt is
– Alexandre Cavaloti