Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TERM

CRN

SUBJ_CODE

CRSE_NUMB

ACCT_CODE

ENRL

PTRM_END_DATE

In 22-23, 320 P2Annual?

202220202320

25484

PS

200M1

P

44 (43 Res)

2022-07-20

No, missing 35.285238095 FTES

Expand
titleHelpful Code Snippets to find cross term/fiscal year CRNs
Code Block
languagesql
--Cross Term Positive Attendance Sections
SELECT DISTINCT
            SSBSECT_TERM_CODE
            ,SSBSECT.SSBSECT_CRN
            ,SSBSECT.SSBSECT_SUBJ_CODE
            ,SSBSECT.SSBSECT_CRSE_NUMB
            ,SSBSECT.SSBSECT_ACCT_CODE
            ,SSBSECT_ENRL
            ,TO_VARCHAR(SSBSECT_PTRM_END_DATE, 'YYYY-MM-DD') AS SSBSECT_PTRM_END_DATE
FROM        COS_DATALAKEHOUSE.DATALAKE.COSBANNERPROD_SATURN_SSBSECT AS SSBSECT
JOIN        COS_DATALAKEHOUSE.DATALAKE.COSBANNERPROD_SATURN_STVTERM ON SSBSECT_TERM_CODE = STVTERM_CODE
JOIN        COS_DATALAKEHOUSE.DATALAKE.COSBANNERPROD_SATURN_STVACCT ON SSBSECT_ACCT_CODE = STVACCT_CODE
WHERE       SSBSECT_PTRM_END_DATE > STVTERM_END_DATE
    AND     STVACCT_ACTUAL_IND = 'Y'
    AND     SSBSECT.INVOKE_DATA_DATE = DATEADD(DAY, -1, CURRENT_DATE)
    AND     SSBSECT_TERM_CODE = :term_code
ORDER BY    SSBSECT_TERM_CODE DESC
;

--Positive Attendance Sections where course ends in Fiscal Year (320 Reporting Cycle) different than STVTERM_END_DATE
SELECT DISTINCT
    SSBSECT.SSBSECT_TERM_CODE,
    SSBSECT.SSBSECT_CRN,
    SSBSECT.SSBSECT_SUBJ_CODE,
    SSBSECT.SSBSECT_CRSE_NUMB,
    SSBSECT.SSBSECT_ENRL,
    SSBSECT_PTRM_CODE,
    SSBSECT_ACCT_CODE,
    TO_VARCHAR(SSBSECT_PTRM_END_DATE, 'YYYY-MM-DD') AS SSBSECT_PTRM_END_DATE,
    STVTERM_ACYR_CODE
FROM COS_DATALAKEHOUSE.DATALAKE.COSBANNERPROD_SATURN_SSBSECT AS SSBSECT
JOIN COS_DATALAKEHOUSE.DATALAKE.COSBANNERPROD_SATURN_STVTERM
    ON SSBSECT_TERM_CODE = STVTERM_CODE
JOIN COS_DATALAKEHOUSE.DATALAKE.COSBANNERPROD_SATURN_STVACCT
    ON SSBSECT_ACCT_CODE = STVACCT_CODE
WHERE SSBSECT_PTRM_END_DATE > (
    SELECT (FTVFSYR_END_DATE)
    FROM COS_DATALAKEHOUSE.DATALAKE.COSBANNERPROD_FIMSMGR_FTVFSYR
    WHERE FTVFSYR_FSYR_CODE = :fiscal_year
        AND INVOKE_DATA_DATE = DATEADD(DAY, -1, CURRENT_DATE)
)
    AND STVACCT_ACTUAL_IND = 'Y'
    AND SSBSECT.INVOKE_DATA_DATE = DATEADD(DAY, -1, CURRENT_DATE)
--    AND STVTERM_ACYR_CODE < CONCAT('20', :fiscal_year)+'1' --Removes future CRNs based off their future Academic Year
--    AND SSBSECT_TERM_CODE < CONCAT('20', :fiscal_year,'30') --Removes trailing summer that is included in future 320 cycles
--    AND SSBSECT_TERM_CODE = :term_code
ORDER BY SSBSECT_TERM_CODE DESC;
;

--Registration activity and contact hours w/ CA residency
SELECT          SFRSTCR.*
                ,RESIDENT.*
FROM            COS_DATALAKEHOUSE.DATALAKE.COSBANNERPROD_SATURN_SFRSTCR SFRSTCR
LEFT JOIN       DEV_DB.JOSHUAME.FV_DEMO_GET_RESIDENCY RESIDENT ON SFRSTCR.SFRSTCR_PIDM = RESIDENT.PIDM
    AND         SFRSTCR.SFRSTCR_TERM_CODE = RESIDENT.TERM_CODE
LEFT JOIN       COS_DATALAKEHOUSE.DATALAKE.COSBANNERPROD_SATURN_STVRESD AS STVRESD
    ON RESIDENT.SGBSTDN_RESD_CODE = STVRESD_CODE
WHERE           SFRSTCR.SFRSTCR_TERM_CODE = :term_code
AND             SFRSTCR.SFRSTCR_CRN = :CRN
AND             SFRSTCR.INVOKE_DATA_DATE = DATEADD(DAY, -1, CURRENT_DATE)
AND             STVRESD.STVRESD_IN_STATE_IND = 'I'
AND             STVRESD.INVOKE_DATA_DATE = DATEADD(DAY, -1, CURRENT_DATE);

--Sum of contact hours divided by 525 for FTES amount
SELECT          SUM(SFRSTCR.SFRSTCR_ATTEND_HR)/525
FROM            COS_DATALAKEHOUSE.DATALAKE.COSBANNERPROD_SATURN_SFRSTCR AS SFRSTCR
LEFT JOIN       DEV_DB.JOSHUAME.FV_DEMO_GET_RESIDENCY RESIDENT
    ON SFRSTCR.SFRSTCR_PIDM = RESIDENT.PIDM
           AND SFRSTCR.SFRSTCR_TERM_CODE = RESIDENT.TERM_CODE
LEFT JOIN       COS_DATALAKEHOUSE.DATALAKE.COSBANNERPROD_SATURN_STVRESD AS STVRESD
    ON RESIDENT.SGBSTDN_RESD_CODE = STVRESD_CODE
WHERE           SFRSTCR.SFRSTCR_TERM_CODE = :term_code
AND             SFRSTCR.SFRSTCR_CRN = :CRN
AND             SFRSTCR.INVOKE_DATA_DATE = DATEADD(DAY, -1, CURRENT_DATE)
AND             STVRESD.STVRESD_IN_STATE_IND = 'I'
AND             STVRESD.INVOKE_DATA_DATE = DATEADD(DAY, -1, CURRENT_DATE);

--D or ID ACCT_CODE for NC Sections
SELECT DISTINCT
            SSBSECT_TERM_CODE
            ,SSBSECT.SSBSECT_CRN
            ,SSBSECT.SSBSECT_SUBJ_CODE
            ,SSBSECT.SSBSECT_CRSE_NUMB
            ,SSBSECT.SSBSECT_ACCT_CODE
            ,SSBSECT_ENRL
FROM        COS_DATALAKEHOUSE.DATALAKE.COSBANNERPROD_SATURN_SSBSECT AS SSBSECT
WHERE       SSBSECT.INVOKE_DATA_DATE = DATEADD(DAY, -1, CURRENT_DATE)
    AND     SSBSECT_TERM_CODE = :term_code
    AND     SSBSECT_ACCT_CODE IN ('D','ID')
    AND     SSBSECT_CRSE_NUMB LIKE '4%'
ORDER BY    SSBSECT_TERM_CODE DESC
  •  ADD CARRY FORWARD from 2022 RECAL

Added to District Totals & Center Totals

...

FTES Total

...

 

...

 

...

 

...

 

...

 Campus/District 

...

 Resident 

...

Resident Ext Hours 

...

 Non-Resident 

...

 Totals 

...

 Hanford 

...

17.90

...

13.20

...

0.45

...

31.54

...

 Tulare 

...

187.04

...

 

...

1.67

...

188.70

...

 District (includes HAC,TCC)

...

276.97

...

25.79

...

2.50

...

305.26

By Accounting Method

...

Contact Hours - Daily 

...

 Campus/District 

...

 Resident 

...

 Resident Ext Hours 

...

 Non-Resident 

...

 Totals 

...

 Hanford 

...

           6,561.90

...

181.70

...

          6,743.60

...

 Tulare 

...

           5,409.60

...

52.90

...

          5,462.50

...

 District (includes HAC,TCC) 

...

         30,521.50

...

6,610.20

...

439.30

...

       37,571.00

...

Contact Hours - Independent Daily 

...

 Campus/District 

...

 Resident 

...

 Resident Ext Hours 

...

 Non-Resident 

...

 Totals 

...

 Hanford 

...

           2,835.00

...

 6,930.00

...

 52.50

...

          9,817.50

...

 Tulare 

...

         92,785.00

...

 822.50

...

       93,607.50

...

 District (includes HAC,TCC) 

...

       114,887.50

...

 6,930.00

...

                       875.00

...

     122,692.50

Expand
titleCensus Date or End Date is > 7/1
Info

Sorry for the delay on this. I’m inclined to say these Alternative Attendance Accounting Procedure-Daily Census courses also have the summer shift reporting option. Title 5 section 58010(a) states “Full-time equivalent student for courses using census procedure may be reported in either the fiscal year in which the census day procedure is completed or in which the course ends.” I know that this provision does not apply to positive attendance courses (those must be reported in the period in which the course ends), however, I do not see any reason that it would not apply to courses on the alternative attendance accounting procedure- daily census.

As is the case with regular daily census courses, you would want to make sure that appropriate records are maintained to show that FTES were claimed appropriately and not claimed in both fiscal years.

-Natalie Wagner 7/15/2021

  •  Remove CARRY FORWARD
    •  No Non-Resident TSCH are showing up for D/ID on Term 202330. Wrote query to find if true.
Code Block
languagesql
--NonResident TSCH are showing up for D/ID for a given term
SELECT          SSBSECT.SSBSECT_TERM_CODE
                ,SSBSECT.SSBSECT_CRN
                ,SSBSECT.SSBSECT_PTRM_END_DATE
                ,SSBSECT.SSBSECT_CAMP_CODE
                ,COUNT(SFRSTCR.SFRSTCR_PIDM)
FROM            COS_DATALAKEHOUSE.DATALAKE.COSBANNERPROD_SATURN_SFRSTCR AS SFRSTCR
LEFT JOIN       DEV_DB.JOSHUAME.FV_DEMO_GET_RESIDENCY RESIDENT
    ON SFRSTCR.SFRSTCR_PIDM = RESIDENT.PIDM
           AND SFRSTCR.SFRSTCR_TERM_CODE = RESIDENT.TERM_CODE
LEFT JOIN       COS_DATALAKEHOUSE.DATALAKE.COSBANNERPROD_SATURN_STVRESD AS STVRESD
    ON RESIDENT.SGBSTDN_RESD_CODE = STVRESD_CODE
INNER JOIN      COS_DATALAKEHOUSE.DATALAKE.COSBANNERPROD_SATURN_SSBSECT AS SSBSECT
    ON SFRSTCR_TERM_CODE = SSBSECT.SSBSECT_TERM_CODE
            AND SFRSTCR_CRN = SSBSECT_CRN
WHERE           SFRSTCR.SFRSTCR_TERM_CODE = :term_code
AND             SSBSECT_PTRM_END_DATE > CONCAT(:YYYYMMDD) --Follow this format 'YYYY-MM-DD' and include the ' '
AND             STVRESD.STVRESD_IN_STATE_IND <> 'I'
AND             SSBSECT.SSBSECT_ACCT_CODE IN ('D','ID')
AND             SSBSECT_CAMP_CODE <> 'COS'
AND             SFRSTCR.INVOKE_DATA_DATE = DATEADD(DAY, -1, CURRENT_DATE)
AND             STVRESD.INVOKE_DATA_DATE = DATEADD(DAY, -1, CURRENT_DATE)
AND             SSBSECT.INVOKE_DATA_DATE = DATEADD(DAY, -1, CURRENT_DATE)
GROUP BY        SSBSECT_TERM_CODE, SSBSECT_CRN, SSBSECT_CAMP_CODE,SSBSECT_PTRM_END_DATE;

...

  • Explain New Carryforward Way
Expand
titleCensus Date or End Date is > 7/1
Info

Sorry for the delay on this. I’m inclined to say these Alternative Attendance Accounting Procedure-Daily Census courses also have the summer shift reporting option. Title 5 section 58010(a) states “Full-time equivalent student for courses using census procedure may be reported in either the fiscal year in which the census day procedure is completed or in which the course ends.” I know that this provision does not apply to positive attendance courses (those must be reported in the period in which the course ends), however, I do not see any reason that it would not apply to courses on the alternative attendance accounting procedure- daily census.

As is the case with regular daily census courses, you would want to make sure that appropriate records are maintained to show that FTES were claimed appropriately and not claimed in both fiscal years.

-Natalie Wagner 7/15/2021