Hi,
I'm having a problem with a query and was hoping someone could help me out.
I have 3 tables each with the same key.
Table 1 - List of Customers (500 rows)
Table 2 - Usage (500 rows)
Table 3 - Status (400 rows)
I attempted to do this:
Select a.*
from customers a left join usage b on a.id = b.id
left join status c on b.id = c.id
My goal is to end up with 500 rows but i'm ending up with 400, so i'm thinking i'm not understanding the concept of left join with multiple tables. Could someone please help?
Thanks!
I'm having a problem with a query and was hoping someone could help me out.
I have 3 tables each with the same key.
Table 1 - List of Customers (500 rows)
Table 2 - Usage (500 rows)
Table 3 - Status (400 rows)
I attempted to do this:
Select a.*
from customers a left join usage b on a.id = b.id
left join status c on b.id = c.id
My goal is to end up with 500 rows but i'm ending up with 400, so i'm thinking i'm not understanding the concept of left join with multiple tables. Could someone please help?
Thanks!