Iām trying to query a DB sql oracle which combines 2 tables data but shows the locations which have not had any orders.
I have created a location_t with the relevant grids by Mile from the main company. I have given the grids a location ID which map over to the customer table.
I need to write a query which shows the grids that have no Customer orders.
I have begun the query with a full outer join
Select customer.location_id, location-t.grid_location From customer Full outer join location_t On customer.location_Id = location_t.location_Id
This works but of course gives all the results with a - for the ids not used.
Is there a where clause which will only show the empty IDs where there are no customers who order yet.
Examples of better ways to do this are also welcome. Thank you