from FR_T_USER a ,
FR_T_CUSTOMROLE b,
FR_T_CUSTOMROLE_USER c,
FR_T_CUSTOMROLEENTRYPRIVILEGE d,
FR_REPORTLETENTRY e,
fr_t_department_post_user f ,
fr_t_department g,
fr_t_post h
where a.id = c.userid
and c.CUSTOMROLEid = b.id
and b.id = d.roleid
and d.entryid = e.id
and f.Userid=a.id
and f.Departmentid=g.id
and f.Postid= h.id