28: -- removed nvl in get_fed_efc
29: --------------------------------------------------------------------------------------
30: FUNCTION get_sectionii_stdnt (p_depend_stat IN igf_lookups_view.lookup_code%TYPE,
31: p_class_standing IN igf_lookups_view.lookup_code%TYPE,
32: p_ci_cal_type IN igs_ca_inst.cal_type%TYPE,
33: p_ci_sequence_number IN igs_ca_inst.sequence_number%TYPE,
34: p_minvalue IN igf_aw_fi_inc_level.minvalue%TYPE,
35: p_maxvalue IN igf_aw_fi_inc_level.maxvalue%TYPE,
36: p_efc IN VARCHAR2)
29: --------------------------------------------------------------------------------------
30: FUNCTION get_sectionii_stdnt (p_depend_stat IN igf_lookups_view.lookup_code%TYPE,
31: p_class_standing IN igf_lookups_view.lookup_code%TYPE,
32: p_ci_cal_type IN igs_ca_inst.cal_type%TYPE,
33: p_ci_sequence_number IN igs_ca_inst.sequence_number%TYPE,
34: p_minvalue IN igf_aw_fi_inc_level.minvalue%TYPE,
35: p_maxvalue IN igf_aw_fi_inc_level.maxvalue%TYPE,
36: p_efc IN VARCHAR2)
37: RETURN NUMBER
70:
71: /*CURSOR c_count_ungrad_std (
72: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
73: cp_class_standing igf_lookups_view.lookup_code%TYPE,
74: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
75: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE)
76: IS
77: SELECT COUNT (isir.base_id)
78: FROM igf_ap_isir_matched isir,
71: /*CURSOR c_count_ungrad_std (
72: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
73: cp_class_standing igf_lookups_view.lookup_code%TYPE,
74: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
75: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE)
76: IS
77: SELECT COUNT (isir.base_id)
78: FROM igf_ap_isir_matched isir,
79: igf_ap_fa_base_rec fa
102: --It would retrieve the data for the students whose career level is Graduate.
103:
104: CURSOR c_count_grad_std ( cp_depend_stat igf_lookups_view.lookup_code%TYPE,
105: cp_class_standing igf_lookups_view.lookup_code%TYPE,
106: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
107: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
108: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
109: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE,
110: cp_efc VARCHAR2 )
103:
104: CURSOR c_count_grad_std ( cp_depend_stat igf_lookups_view.lookup_code%TYPE,
105: cp_class_standing igf_lookups_view.lookup_code%TYPE,
106: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
107: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
108: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
109: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE,
110: cp_efc VARCHAR2 )
111: IS
140:
141: CURSOR c_count_ungrad_std_efc (
142: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
143: cp_class_standing igf_lookups_view.lookup_code%TYPE,
144: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
145: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
146: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
147: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE,
148: cp_efc VARCHAR2)
141: CURSOR c_count_ungrad_std_efc (
142: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
143: cp_class_standing igf_lookups_view.lookup_code%TYPE,
144: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
145: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
146: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
147: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE,
148: cp_efc VARCHAR2)
149: IS
178: --It would retrieve the data for the students whose career level is Graduate.
179:
180: CURSOR c_count_grad_std_efc ( cp_depend_stat igf_lookups_view.lookup_code%TYPE,
181: cp_class_standing igf_lookups_view.lookup_code%TYPE,
182: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
183: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
184: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
185: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE,
186: cp_efc VARCHAR2)
179:
180: CURSOR c_count_grad_std_efc ( cp_depend_stat igf_lookups_view.lookup_code%TYPE,
181: cp_class_standing igf_lookups_view.lookup_code%TYPE,
182: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
183: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
184: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
185: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE,
186: cp_efc VARCHAR2)
187: IS
362: FUNCTION get_sectionvi_fund ( p_rec_type IN igf_aw_fisap_vi_h.rec_type%TYPE,
363: p_fund_type IN igf_aw_award_v.fed_fund_code%TYPE,
364: p_depend_stat IN igf_lookups_view.lookup_code%TYPE,
365: p_class_standing IN igf_lookups_view.lookup_code%TYPE,
366: p_ci_cal_type IN igs_ca_inst.cal_type%TYPE,
367: p_ci_sequence_number IN igs_ca_inst.sequence_number%TYPE,
368: p_minvalue IN igf_aw_fi_inc_level.minvalue%TYPE,
369: p_maxvalue IN igf_aw_fi_inc_level.maxvalue%TYPE )
370: RETURN NUMBER
363: p_fund_type IN igf_aw_award_v.fed_fund_code%TYPE,
364: p_depend_stat IN igf_lookups_view.lookup_code%TYPE,
365: p_class_standing IN igf_lookups_view.lookup_code%TYPE,
366: p_ci_cal_type IN igs_ca_inst.cal_type%TYPE,
367: p_ci_sequence_number IN igs_ca_inst.sequence_number%TYPE,
368: p_minvalue IN igf_aw_fi_inc_level.minvalue%TYPE,
369: p_maxvalue IN igf_aw_fi_inc_level.maxvalue%TYPE )
370: RETURN NUMBER
371: IS
392: cp_rec_type igf_aw_fisap_vi_h.rec_type%TYPE,
393: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
394: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
395: cp_class_standing igf_lookups_view.lookup_code%TYPE,
396: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
397: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
398: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
399: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE )
400: IS
393: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
394: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
395: cp_class_standing igf_lookups_view.lookup_code%TYPE,
396: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
397: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
398: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
399: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE )
400: IS
401: SELECT NVL(SUM(awd.paid_amt),0)
424: CURSOR c_proff_fund_count ( cp_rec_type igf_aw_fisap_vi_h.rec_type%TYPE,
425: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
426: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
427: cp_class_standing igf_lookups_view.lookup_code%TYPE,
428: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
429: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
430: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
431: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE )
432: IS
425: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
426: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
427: cp_class_standing igf_lookups_view.lookup_code%TYPE,
428: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
429: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
430: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
431: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE )
432: IS
433: SELECT NVL(SUM(awd.paid_amt),0)
456: cp_rec_type igf_aw_fisap_vi_h.rec_type%TYPE,
457: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
458: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
459: cp_class_standing igf_lookups_view.lookup_code%TYPE,
460: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
461: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
462: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
463: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE )
464: IS
457: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
458: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
459: cp_class_standing igf_lookups_view.lookup_code%TYPE,
460: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
461: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
462: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
463: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE )
464: IS
465: SELECT NVL(SUM(awd.paid_amt),0)
488: cp_rec_type igf_aw_fisap_vi_h.rec_type%TYPE,
489: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
490: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
491: cp_class_standing igf_lookups_view.lookup_code%TYPE,
492: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
493: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
494: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
495: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE )
496: IS
489: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
490: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
491: cp_class_standing igf_lookups_view.lookup_code%TYPE,
492: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
493: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
494: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
495: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE )
496: IS
497: SELECT NVL(SUM(awd.paid_amt),0)
682: FUNCTION get_sectionvi_stdnt (p_rec_type IN igf_aw_fisap_vi_h.rec_type%TYPE,
683: p_fund_type IN igf_aw_award_v.fed_fund_code%TYPE,
684: p_depend_stat IN igf_lookups_view.lookup_code%TYPE,
685: p_class_standing IN igf_lookups_view.lookup_code%TYPE,
686: p_ci_cal_type IN igs_ca_inst.cal_type%TYPE,
687: p_ci_sequence_number IN igs_ca_inst.sequence_number%TYPE,
688: p_minvalue IN igf_aw_fi_inc_level.minvalue%TYPE,
689: p_maxvalue IN igf_aw_fi_inc_level.maxvalue%TYPE )
690: RETURN NUMBER
683: p_fund_type IN igf_aw_award_v.fed_fund_code%TYPE,
684: p_depend_stat IN igf_lookups_view.lookup_code%TYPE,
685: p_class_standing IN igf_lookups_view.lookup_code%TYPE,
686: p_ci_cal_type IN igs_ca_inst.cal_type%TYPE,
687: p_ci_sequence_number IN igs_ca_inst.sequence_number%TYPE,
688: p_minvalue IN igf_aw_fi_inc_level.minvalue%TYPE,
689: p_maxvalue IN igf_aw_fi_inc_level.maxvalue%TYPE )
690: RETURN NUMBER
691: IS
713: CURSOR c_non_proff_std_count (cp_rec_type igf_aw_fisap_vi_h.rec_type%TYPE,
714: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
715: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
716: cp_class_standing igf_lookups_view.lookup_code%TYPE,
717: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
718: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
719: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
720: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE )
721: IS
714: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
715: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
716: cp_class_standing igf_lookups_view.lookup_code%TYPE,
717: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
718: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
719: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
720: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE )
721: IS
722: SELECT COUNT (isir.base_id )
750: CURSOR c_proff_std_count (cp_rec_type igf_aw_fisap_vi_h.rec_type%TYPE,
751: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
752: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
753: cp_class_standing igf_lookups_view.lookup_code%TYPE,
754: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
755: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
756: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
757: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE )
758: IS
751: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
752: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
753: cp_class_standing igf_lookups_view.lookup_code%TYPE,
754: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
755: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
756: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
757: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE )
758: IS
759: SELECT COUNT (isir.base_id )
785: CURSOR c_less_ft_std_count (cp_rec_type igf_aw_fisap_vi_h.rec_type%TYPE,
786: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
787: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
788: cp_class_standing igf_lookups_view.lookup_code%TYPE,
789: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
790: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
791: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
792: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE )
793: IS
786: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
787: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
788: cp_class_standing igf_lookups_view.lookup_code%TYPE,
789: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
790: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
791: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
792: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE )
793: IS
794: SELECT COUNT (isir.base_id )
819: CURSOR c_auto_efc_std_count ( cp_rec_type igf_aw_fisap_vi_h.rec_type%TYPE,
820: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
821: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
822: cp_class_standing igf_lookups_view.lookup_code%TYPE,
823: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
824: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
825: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
826: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE )
827: IS
820: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
821: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
822: cp_class_standing igf_lookups_view.lookup_code%TYPE,
823: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
824: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
825: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
826: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE )
827: IS
828: SELECT COUNT ( isir.base_id )
852: CURSOR c_non_proff_und_std_count (cp_rec_type igf_aw_fisap_vi_h.rec_type%TYPE,
853: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
854: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
855: cp_class_standing igf_lookups_view.lookup_code%TYPE,
856: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
857: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
858: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
859: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE )
860: IS
853: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
854: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
855: cp_class_standing igf_lookups_view.lookup_code%TYPE,
856: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
857: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
858: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
859: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE )
860: IS
861: SELECT COUNT ( DISTINCT (isir.base_id ) )
889: CURSOR c_proff_und_std_count (cp_rec_type igf_aw_fisap_vi_h.rec_type%TYPE,
890: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
891: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
892: cp_class_standing igf_lookups_view.lookup_code%TYPE,
893: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
894: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
895: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
896: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE ) IS
897: SELECT COUNT (DISTINCT (isir.base_id ) )
890: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
891: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
892: cp_class_standing igf_lookups_view.lookup_code%TYPE,
893: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
894: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
895: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
896: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE ) IS
897: SELECT COUNT (DISTINCT (isir.base_id ) )
898: FROM igf_ap_isir_matched isir,
924: CURSOR c_less_ft_und_std_count (cp_rec_type igf_aw_fisap_vi_h.rec_type%TYPE,
925: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
926: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
927: cp_class_standing igf_lookups_view.lookup_code%TYPE,
928: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
929: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
930: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
931: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE )
932: IS
925: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
926: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
927: cp_class_standing igf_lookups_view.lookup_code%TYPE,
928: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
929: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
930: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
931: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE )
932: IS
933: SELECT COUNT (DISTINCT(isir.base_id ))
959: CURSOR c_auto_efc_und_std_count ( cp_rec_type igf_aw_fisap_vi_h.rec_type%TYPE,
960: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
961: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
962: cp_class_standing igf_lookups_view.lookup_code%TYPE,
963: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
964: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
965: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
966: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE )
967: IS
960: cp_fund_type igf_aw_award_v.fed_fund_code%TYPE,
961: cp_depend_stat igf_lookups_view.lookup_code%TYPE,
962: cp_class_standing igf_lookups_view.lookup_code%TYPE,
963: cp_ci_cal_type igs_ca_inst.cal_type%TYPE,
964: cp_ci_sequence_number igs_ca_inst.sequence_number%TYPE,
965: cp_minvalue igf_aw_fi_inc_level.minvalue%TYPE,
966: cp_maxvalue igf_aw_fi_inc_level.maxvalue%TYPE )
967: IS
968: SELECT COUNT (DISTINCT(isir.base_id ))