So I have a table Transportation with columns: ClientIDAsSeller, ClientIDAsBuyer..
and a Client table with column ID (Primary key). My C# app gets a client IDs and sets in the Transportation table.
When I press execute result is null
What is problem how can I solve that?
SELECT
Clients.Name, Transportation.TransStart, Transportation.TransEnd
FROM
Transportation
INNER JOIN
Clients ON Transportation.ClientIDAsSeller = Clients.ID
AND Transportation.ClientIDAsBuyer = Clients.ID
You are likely excluding all possible result sets by only doing one join. You probably want to do: