MySQL Forums
Forum List  »  Newbie

Re: help improving 'join' efficiency in sub-querys
Posted by: Penfold Horwood
Date: September 16, 2016 06:19AM

because each of these cases require me to look for the unique ID

where d2.id = frm_grp.id and frm_req.id = 335

in this case 335 will take me to the relevant data that I want to appear within the column.
If I was to move the joins into the main query, I would see an entry for each frm_req.id.

I initially thought of transposing the data however I am not sure if this is possible and additionally I do not know if I could filter out the ID's that are not required to be displayed.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.