0
I have found some answers on the subject, but I still have some doubts, I will try to be as clear as possible. My Example of Banking. have the following tables
Table
Customer> id | name| request
system> id_client | id_system (foreign)
System > id | id_sist | version
Service > id_sist | id_num | id_serie (Foreign key)
Number > id | type | Lic
Serie > id | nserie | key
In the model above I have, the CLIENT with the key ID primary name and request(data) as follows the other tables, with the exception of cliente_system and Service, related to foreign.
What I’m asking is the following, in the customer’s registration he will have more than one service option, and in the service will have a type and type, I have a serial number, when performing the query bring all the service and series of the client within the table.
I have to use INNER JOIN for this rule.
I have the Database model in Mysql Workbench
I appreciate who can clear up my idea
What is your doubt?
– jlHertel
You already answered your question, you will need to use joins, now you need to see the need/structure and formulate the query in a way that suits you.
– Daniel Costa