-2
I am making a database using the Mysql Workbench and I am in need of a brief assistance. I have six entities in total. tb_people who are related to two other tb_clients and tb_adm entities (because the registered user may be a client or Adm). tb_clients is related to tb_schedule (because the client schedules the date of the consultation) and tb_adm is related to tb_employees and tb_services (because only Adm can register employees and services). I managed to get the name of the client and the date of the consultation however, I need to also take the service that he will do, the price he will pay and the name of the employee who will serve the customer. Here is an attachment to better view the code:
Do not post code as image, read the Manual and how not to ask questions, the code should always be published as text to facilitate the operationalization of who will respond.
– Augusto Vasques
Each JOIN must have its own ON clause. Its ON clause is wrong.
– anonimo