Jump to content

Help


jkkenzie

Recommended Posts

$query_rs_events = "SELECT a.RecID, a.ID_Number, a.Emo_Number, a.First_Name,a.Middle_Name, a.Last_Name, a.Address, b.ShareValue, b.Id, b.Pk, b.Type FROM members a INNER JOIN (SELECT Id, Type, Pk, SUM(Amount) AS ShareValue FROM shares WHERE NOT(Description='Safaricom Corporate') GROUP BY Amount DESC) b ON a.ID_Number = b.Id";

 

This Inners Join is giving me few results as anticipated. I think the issue is IF there is no Join between the two tables, it doesn't give that result. How can i pick all data from both tables Irregardless if there is there is a Joint Or NOT

Link to comment
https://forums.phpfreaks.com/topic/173142-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.