select*fromgl_cashflowcasewherepk_detailnotin(selectpk_detailfromgl_detailwherepk_voucherin(selectpk_voucherfromgl_detailwherepk_accasoain(selectpk_accasoafrombd_accasoawherepk_accountin(selectpk_accountfrombd_accountwherecashtype>0))))