1
I’m making a system with php and mysql to control the input and output of vehicles in a company, so there are two tables, one to record the output information and the other to save the return information. Within the system I am doing a part of research to show the completed records (vehicles that have left but returned) and the open records (vehicles that have left but not yet returned) I know that the completed records I can represent through the Inner Join gathering data from the output table and the return table, but the open records should be only the output data(lines) that are not used in the function Inner Join, would be more or less (OUTPUT DATA) - (OUTPUT DATA USED IN INNER JOIN) Could anyone help me on how I can do this please? OBS. The vehicles are fixed so they are always the same that keep changing between completed and open records.