https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26567

Marcel de Rooy <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
             Status|Signed Off                  |In Discussion

--- Comment #13 from Marcel de Rooy <[email protected]> ---
            q| INNER JOIN (SELECT DISTINCT subscriptionid FROM
subscriptionroutinglist) srl ON srl.subscriptionid =
subscription.subscriptionid|;
This looks a bit odd?

Couldnt you LEFT JOIN subscriptionroutinglist AND GROUP BY subscriptionid and
WHERE srl.subscriptionid IS NOT NULL ?

Or without a GROUP BY something like:
LEFT JOIN subscriptionroutinglist srl ON srl.routingid = ( SELECT routingid
FROM subscriptionroutinglist WHERE
srl.subscriptionid=subscription.subscriptionid LIMIT 1 )

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to