Hi,
I have to tables : Models_Default and Soft_Info
Models_Default has 2 fields : TemplateID and SoftID
Soft_Info has 3 fields : SoftID, SoftName, Version
I need to get data in from Soft_Info table that SoftID IS NOT in Models_Default table and TemplateID is equal to 15.
I tried LEFT, RIGHT and INNER JOIN combinations but I can't figure out how to retrieve what I need.
I have something like that but it doesn't work
Can someone help me please? It is hard to explain so if you need more info...
Thanks!
I have to tables : Models_Default and Soft_Info
Models_Default has 2 fields : TemplateID and SoftID
Soft_Info has 3 fields : SoftID, SoftName, Version
I need to get data in from Soft_Info table that SoftID IS NOT in Models_Default table and TemplateID is equal to 15.
I tried LEFT, RIGHT and INNER JOIN combinations but I can't figure out how to retrieve what I need.
I have something like that but it doesn't work
Code:
SELECT Soft_Info.Software, Soft_Info.Version, Soft_Info.SoftID
FROM Soft_Info LEFT JOIN Models_Default ON Soft_Info.SoftID = Models_Default.SoftID
WHERE Models_Default.SoftID Is Null AND Models_Default.TemplateID=15
Can someone help me please? It is hard to explain so if you need more info...
Thanks!