Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- select
- ecmf.cfgmapafase_nome,
- bp.pes_nome,
- emaf.mpaprfase_data
- from edu_mapa_aprendizagem ema
- inner join edu_cfg_mapa_fase ecmf
- on ecmf.cfgmapafase_cfgmapacod = ema.mpapr_cfgmapacod
- left join edu_mapa_aprendizagem_fase emaf
- on emaf.mpaprfase_mpaprcod = ema.mpapr_cod
- and emaf.mpaprfase_cfgmapafasecod = ecmf.cfgmapafase_cod
- and emaf.mpaprfase_status = 1
- left join edu_calendario_curricular ecc
- on ecc.ccurric_data = emaf.mpaprfase_data
- and ecc.ccurric_classecod = ema.mpapr_classecod
- and ecc.ccurric_disccod = ema.mpapr_disccod
- left join edu_funcionario ef
- on ef.efunc_cod = ecc.ccurric_efunccod
- left join rh_funcionario rf
- on rf.fun_cod = ef.efunc_funcod
- left join bas_pessoa bp
- on bp.pes_cod = rf.fun_pescod
- where ema.mpapr_cod = :MPAPR_COD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement