Hi All.
I have 3 tables with such structure:
-
Brand (BrandID, Brand)
-
DeviceType (DeviceTypeID, BrandID,DeviceType)
-
Model (ModelID, BrandID, DeviceTypeID, Model)
When I join Brand and DeviceType tables like:SELECT t.BrandID, t.DeviceTypeID, b.Brand, t.DeviceType
FROM Brand b
LEFT JOIN DeviceType t
ON b.BrandID = t.BrandID
The result looks fine. But when I try to join Model table
SELECT t.BrandID, t.DeviceTypeID, b.Brand, t.DeviceType, Model
FROM Brand b
LEFT JOIN DeviceType t
ON b.BrandID = t.BrandID
LEFT JOIN Model m
ON m.DeviceTypeID=t.DeviceTypeID
Result looks mess. How to the problem?
Thanks