Jag har en sql fråga enl. följande:
SELECT
Customer.idCustomer,
Customer.CustomerName,
OfficeLocation.idOffice,
OfficeLocation.Address,
OfficeLocation.Postal,
OfficeLocation.City,
OfficeLocation.Country,
Contact.idOfficeLocation,
Contact.Name,
Contact.Role,
Contact.Phone,
Contact.Mobile,
Contact.Fax,
Contact.Email,
Applications.1,
Applications.2,
Applications.3,
Applications.4,
Applications.5
FROM
((Customer INNER JOIN OfficeLocation ON Customer.idCustomer = OfficeLocation.idCustomer) INNER JOIN Applications ON OfficeLocation.idOffice = Applications.idOfficeLocation) INNER JOIN Contact ON OfficeLocation.idOffice = Contact.idOfficeLocation
WHERE
CustomerName LIKE '"+CustName+"%'"
ORDER by
CustomerName
den skall plocka ut alla kunder ur systemet, vilket fungerar bra när alla tabellerna innehåller information, men om tex Applications inte innehåller någon data för den speciella kunden så visas ingen information alls, men jag vill ju ha kundinformationen i varje fall.
Jag antar att det har något med null, men vet inte hur jag skall göra.
Någon som har någon ide?