SELECT
    tm.id AS member_id,
    tm.facility_id,
    tm.j_learning_id
FROM trz_members tm
WHERE tm.flg_delete = 0 AND tm.j_blend_con_status = 2 AND tm.j_learning_id IS NOT NULL
;
