QueryDsl SQL - Left Join a subquery
问题 I am using QueryDsl SQL and I want to left join a subquery. Here is the query in plain SQL SELECT usr.memberId, payoutsBbf.totalPyts FROM users usr LEFT JOIN (SELECT pyt.member_id AS mmb_id, SUM(pyt.amount) AS totalPyts FROM payout pyt WHERE pyt.payoutPeriod < '2018-01-01' GROUP BY pyt.member_id) AS payoutsBbf ON usr.id = payoutsBbf.mmb_id I wish to write it in QueryDsl SQL and is almost important that the subquery is left joined to the main table users coz this is just a snippet of the whole