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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.