So, I have a Pizzaria project and I have some tables, such as: Customer Registration, Employee Registration, Order Master and etc. I've already created a Client and Employees table and that's OK. In the Order Master table there are two fields that ask for the Employee ID and Customer ID. Can you select the Employee and the Customer just by searching the name of both? Follow the link to understand better: link The foreign keys of the Order are: id_function and customer_id.