I have a mysql database and i want to make a specific selection. Here is the scenario:
First table
Road list data about cargo vehicles.
roadListNumber(primary_key), vehicle, driver, startWorkTime, endWorkTime and so on.
Second table
Cargo zones mapped with the primary key of the first table.
roadListNumber(foreign_key), zoneId, timeInside, spentMoney and so on.
The problem is that not every vehicle goes to the cargo zones so some of the road lists are not mapped with cargo zones (the second table ) and here comes my problem and the question:
How can i select all the roadlist from first table and join the result with the second table ( cargo zones ) without skipping the roadlist which are not mapped with cargo zones?