Answer the question
In order to leave comments, you need to log in
Because of what can be null in the output of the table after the join command?
use PhonesShop
select *
from Orders LEFT JOIN Customers on Orders.CustomerCode = Customers.CustomerCode
LEFT JOIN Accessories on Orders.AccessorieCode1 = Accessories.AccessorieCode and Orders.AccessorieCode2 = Accessories.AccessorieCode and Orders.AccessorieCode3 = Accessories.AccessorieCode
LEFT JOIN Services on Orders.ServiceCode1 = Services.ServiceCode and Orders.ServiceCode2 = Services.ServiceCode and Orders.ServiceCode3 = Services.ServiceCode
LEFT JOIN Workers on Orders.WorkerCode = Workers.WorkerCode
Answer the question
In order to leave comments, you need to log in
When you write
LEFT JOIN Accessories on
Orders.AccessorieCode1 = Accessories.AccessorieCode
and Orders.AccessorieCode2 = Accessories.AccessorieCode
and Orders.AccessorieCode3 = Accessories.AccessorieCode
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question