Output
stringlengths
25
230
Context
stringclasses
1 value
Input
stringlengths
20
214
SELECT * FROM HIX.T_ENRT WHERE ENRT_LOGICAL_ID = (SELECT MAX(ENRT_LOGICAL_ID) FROM HIX.T_ENRT);
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the enrollment with the highest 'Enrollment Logical ID' (ENRT_LOGICAL_ID).
SELECT COUNT(*) AS TotalInProgressEnrollments FROM HIX.T_ENRT WHERE ENRT_STATUS_CD = 427;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the total number of enrollments with 'Enrollment is In Progress/Not started' status (ENRT_STATUS_CD = 427).
SELECT AVG(EHB_PLAN_ENRT_PREM_AM) AS AverageEHBPlanPremiumAmount FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the average 'EHB Plan Enrollment Premium Amount' (EHB_PLAN_ENRT_PREM_AM) for all enrollments.
SELECT * FROM HIX.T_ENRT WHERE DENRT_APPLN_ID = (SELECT MIN(DENRT_APPLN_ID) FROM HIX.T_ENRT);
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the lowest 'Denrollment Application ID' (DENRT_APPLN_ID).
SELECT * FROM HIX.T_ENRT WHERE DENRT_ENRT_FLOW_CD = (SELECT MAX(DENRT_ENRT_FLOW_CD) FROM HIX.T_ENRT);
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the enrollment with the highest 'Denrollment Enrollment Flow Code' (DENRT_ENRT_FLOW_CD).
SELECT SUM(MAX_APTC_AM) AS TotalMaxAPTCOpenEnrollment FROM HIX.T_ENRT WHERE ENRT_IND_CD = 1927;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the sum of 'Max APTC Amount' (MAX_APTC_AM) for all enrollments with 'Open Enrollment' (ENRT_IND_CD = 1927).
SELECT MAX(CMS_MSG_ID) AS HighestCMSMessageID FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the highest 'CMS Message ID' (CMS_MSG_ID) among all enrollments.
SELECT * FROM HIX.T_ENRT WHERE DENRT_RSN_CD = 8612 AND CRTD_DT = (SELECT MIN(CRTD_DT) FROM HIX.T_ENRT WHERE DENRT_RSN_CD = 8612);
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the earliest 'Partial Disenrollment' reason (DENRT_RSN_CD = 8612).
SELECT AVG(PREM_PAID_DT) AS AvgPremiumAmountPaidSpecialEnrollment FROM HIX.T_ENRT WHERE ENRT_IND_CD = 1928;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the average 'Premium Amount Paid' (PREM_PAID_DT) for all enrollments with 'Special Enrollment' (ENRT_IND_CD = 1928).
SELECT COUNT(*) AS TotalActiveRenewalEnrollments FROM HIX.T_ENRT WHERE ENRT_STATUS_CD = 430 AND ENRT_CHNG_IND = 'R';
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the total number of enrollments with 'Active Enrollment' status (ENRT_STATUS_CD = 430) and 'Renewal Initiated' (ENRT_CHNG_IND = 'R').
SELECT COUNT(*) AS TotalNinetyDayDisenrollments FROM HIX.T_ENRT WHERE DENRT_RSN_CD = 4330;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the total number of enrollments with 'Ninety Day' as the disenrollment reason (DENRT_RSN_CD = 4330).
SELECT AVG(ENRT_FLOW_IN) AS AverageEnrollmentFlowIndicator FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the average 'Enrollment Flow Indicator' (ENRT_FLOW_IN) for all enrollments.
SELECT * FROM HIX.T_ENRT WHERE PREM_PAID_TO_DT_END = (SELECT MIN(PREM_PAID_TO_DT_END) FROM HIX.T_ENRT);
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the earliest 'Premium Paid to Date End' (PREM_PAID_TO_DT_END).
SELECT * FROM HIX.T_ENRT WHERE PLAN_ENRT_AFTER_APTC_AM = (SELECT MAX(PLAN_ENRT_AFTER_APTC_AM) FROM HIX.T_ENRT);
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the enrollment with the latest 'Plan Enrollment After APTC Amount' (PLAN_ENRT_AFTER_APTC_AM).
SELECT SUM(CAC_ASSIST_ID) AS TotalCACAssisterID FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the sum of 'CAC Assister ID' (CAC_ASSIST_ID) for all enrollments.
SELECT MAX(VERS_NB) AS HighestVersionNumber FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the highest 'Version Number' (VERS_NB) among all enrollments.
SELECT AVG(EFFV_END_DT) AS AverageEffectiveEndDate FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the average 'Effective End Date' (EFFV_END_DT) for all enrollments.
SELECT * FROM HIX.T_ENRT WHERE ENRT_FLOW_IN = (SELECT MIN(ENRT_FLOW_IN) FROM HIX.T_ENRT);
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the lowest 'Enrollment Flow Indicator' (ENRT_FLOW_IN).
SELECT * FROM HIX.T_ENRT WHERE ENRT_YEAR = (SELECT MAX(ENRT_YEAR) FROM HIX.T_ENRT);
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the enrollment with the highest 'Enrollment Year' (ENRT_YEAR).
SELECT COUNT(*) AS TotalSkipShoppingConfirmation FROM HIX.T_ENRT WHERE SKIP_SHOP_IN = 'Y';
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the total number of enrollments with 'Skip Shopping Confirmation' (SKIP_SHOP_IN = 'Y').
SELECT AVG(EHB_PLAN_ENRT_PREM_AM) AS AverageEHBPlanPremiumAmount FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the average 'EHB Plan Enrollment Premium Amount' (EHB_PLAN_ENRT_PREM_AM) for all enrollments.
SELECT * FROM HIX.T_ENRT WHERE DENRT_APPLN_ID = (SELECT MIN(DENRT_APPLN_ID) FROM HIX.T_ENRT);
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the lowest 'Denrollment Application ID' (DENRT_APPLN_ID).
SELECT * FROM HIX.T_ENRT WHERE DENRT_ENRT_FLOW_CD = (SELECT MAX(DENRT_ENRT_FLOW_CD) FROM HIX.T_ENRT);
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the enrollment with the highest 'Denrollment Enrollment Flow Code' (DENRT_ENRT_FLOW_CD).
SELECT SUM(MAX_APTC_AM) AS TotalMaxAPTCOpenEnrollment FROM HIX.T_ENRT WHERE ENRT_IND_CD = 1927;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the sum of 'Max APTC Amount' (MAX_APTC_AM) for all enrollments with 'Open Enrollment' (ENRT_IND_CD = 1927).
SELECT MAX(CMS_MSG_ID) AS HighestCMSMessageID FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the highest 'CMS Message ID' (CMS_MSG_ID) among all enrollments.
SELECT * FROM HIX.T_ENRT WHERE DENRT_RSN_CD = 8612 AND CRTD_DT = (SELECT MIN(CRTD_DT) FROM HIX.T_ENRT WHERE DENRT_RSN_CD = 8612);
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the earliest 'Partial Disenrollment' reason (DENRT_RSN_CD = 8612).
SELECT AVG(PREM_PAID_DT) AS AvgPremiumAmountPaidSpecialEnrollment FROM HIX.T_ENRT WHERE ENRT_IND_CD = 1928;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the average 'Premium Amount Paid' (PREM_PAID_DT) for all enrollments with 'Special Enrollment' (ENRT_IND_CD = 1928).
SELECT COUNT(*) AS TotalActiveRenewalEnrollments FROM HIX.T_ENRT WHERE ENRT_STATUS_CD = 430 AND ENRT_CHNG_IND = 'R';
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the total number of enrollments with 'Active Enrollment' status (ENRT_STATUS_CD = 430) and 'Renewal Initiated' (ENRT_CHNG_IND = 'R').
SELECT * FROM HIX.T_ENRT WHERE CR_MAX_APTC_DT = (SELECT MAX(CR_MAX_APTC_DT) FROM HIX.T_ENRT);
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
etrieve the enrollment with the highest 'Change Reporting Maximum APTC Date' (CR_MAX_APTC_DT).
SELECT COUNT(*) AS TotalInProgressAutoEnrollments FROM HIX.T_ENRT WHERE ENRT_STATUS_CD = 427 AND ENRT_FLOW_IN = 3797;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the total number of enrollments with 'Enrollment is In Progress/Not started' status (ENRT_STATUS_CD = 427) and 'Auto' as the enrollment flow (ENRT_FLOW_IN = 3797).
SELECT AVG(EHB_PLAN_ENRT_PREM_AM) AS AvgEHBPlanPremiumAmountSpecialEnrollment FROM HIX.T_ENRT WHERE ENRT_IND_CD = 1928;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the average 'EHB Plan Enrollment Premium Amount' (EHB_PLAN_ENRT_PREM_AM) for all enrollments with 'Special Enrollment' (ENRT_IND_CD = 1928).
SELECT * FROM HIX.T_ENRT WHERE DENRT_APPLN_ID = (SELECT MIN(DENRT_APPLN_ID) FROM HIX.T_ENRT WHERE ENRT_CHNG_IND = 'C');
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the lowest 'Denrollment Application ID' (DENRT_APPLN_ID) and 'Change in Enrollment' (ENRT_CHNG_IND = 'C').
SELECT * FROM HIX.T_ENRT WHERE DENRT_ENRT_FLOW_CD = (SELECT MAX(DENRT_ENRT_FLOW_CD) FROM HIX.T_ENRT WHERE DENRT_RSN_CD = 8612);
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the enrollment with the highest 'Denrollment Enrollment Flow Code' (DENRT_ENRT_FLOW_CD) and 'Partial Disenrollment' (DENRT_RSN_CD = 8612).
SELECT SUM(PREM_PAID_DT) AS TotalPremiumAmountPaidHuskyPlan FROM HIX.T_ENRT WHERE ENRT_STATUS_CD = 430 AND ENRT_TYPE_CD = 441;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the sum of 'Premium Amount Paid' (PREM_PAID_DT) for all enrollments with 'Active Enrollment' status (ENRT_STATUS_CD = 430) and 'Husky Plan' as the enrollment type (ENRT_TYPE_CD = 441).
SELECT ENRT_TYPE_CD, COUNT(*) AS EnrollmentCount FROM HIX.T_ENRT GROUP BY ENRT_TYPE_CD;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the count of enrollments for each enrollment type.
SELECT ENRT_TYPE_CD, AVG(MAX_APTC_AM) AS AvgMaxAPTC FROM HIX.T_ENRT GROUP BY ENRT_TYPE_CD;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the average 'Maximum Advanced Premium Tax Credit' (MAX_APTC_AM) for each enrollment type.
SELECT ENRT_TYPE_CD, SUM(PREM_PAID_DT) AS TotalPremiumPaid FROM HIX.T_ENRT GROUP BY ENRT_TYPE_CD;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the total 'Premium Amount Paid' (PREM_PAID_DT) for each enrollment type.
SELECT ENRT_TYPE_CD, MAX(CR_MAX_APTC_AM) AS HighestCRMaxAPTC FROM HIX.T_ENRT GROUP BY ENRT_TYPE_CD;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the enrollment with the highest 'Change Reporting Maximum APTC Amount' (CR_MAX_APTC_AM) for each enrollment type.
SELECT ENRT_TYPE_CD, DENRT_RSN_CD, MIN(CRTD_DT) AS EarliestCoverageEnd FROM HIX.T_ENRT GROUP BY ENRT_TYPE_CD, DENRT_RSN_CD;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the lowest 'Coverage End Initiated' reason (DENRT_RSN_CD) for each enrollment type.
SELECT ENRT_TYPE_CD, SUM(MAX_APTC_AM) AS TotalMaxAPTC FROM HIX.T_ENRT GROUP BY ENRT_TYPE_CD;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the sum of 'Max APTC Amount' (MAX_APTC_AM) for each enrollment type.
SELECT ENRT_TYPE_CD, MAX(VERS_NB) AS HighestVersionNumber FROM HIX.T_ENRT GROUP BY ENRT_TYPE_CD;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the highest 'Version Number' (VERS_NB) for each enrollment type.
SELECT ENRT_TYPE_CD, AVG(EFFV_END_DT) AS AvgEffectiveEndDate FROM HIX.T_ENRT GROUP BY ENRT_TYPE_CD;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the average 'Effective End Date' (EFFV_END_DT) for each enrollment type.
SELECT ENRT_TYPE_CD, MIN(CR_MAX_APTC_DT) AS LowestCRMaxAPTCDate FROM HIX.T_ENRT GROUP BY ENRT_TYPE_CD;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the lowest 'Change Reporting Maximum APTC Date' (CR_MAX_APTC_DT) for each enrollment type.
SELECT ENRT_TYPE_CD, MAX(ENRT_LOGICAL_ID) AS HighestENRTLogicalID FROM HIX.T_ENRT GROUP BY ENRT_TYPE_CD;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the enrollment with the highest 'Enrollment Logical ID' (ENRT_LOGICAL_ID) for each enrollment type.
SELECT ENRT_TYPE_CD, COUNT(*) AS TotalActiveEnrollments FROM HIX.T_ENRT WHERE ENRT_STATUS_CD = 430 GROUP BY ENRT_TYPE_CD;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the total number of enrollments with 'Active Enrollment' status (ENRT_STATUS_CD = 430) for each enrollment type.
SELECT ENRT_TYPE_CD, AVG(EHB_PLAN_ENRT_PREM_AM) AS AvgEHBPlanPremiumAmount FROM HIX.T_ENRT GROUP BY ENRT_TYPE_CD;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the average 'EHB Plan Enrollment Premium Amount' (EHB_PLAN_ENRT_PREM_AM) for each enrollment type.
SELECT ENRT_TYPE_CD, MIN(DENRT_APPLN_ID) AS LowestDENRTApplnID FROM HIX.T_ENRT GROUP BY ENRT_TYPE_CD;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the lowest 'Denrollment Application ID' (DENRT_APPLN_ID) for each enrollment type.
SELECT ENRT_TYPE_CD, MAX(DENRT_ENRT_FLOW_CD) AS HighestDENRTEnrtFlowCode FROM HIX.T_ENRT GROUP BY ENRT_TYPE_CD;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the enrollment with the highest 'Denrollment Enrollment Flow Code' (DENRT_ENRT_FLOW_CD) for each enrollment type.
SELECT ENRT_TYPE_CD, SUM(MAX_APTC_AM) AS TotalMaxAPTCOpenEnrollment FROM HIX.T_ENRT WHERE ENRT_IND_CD = 1927 GROUP BY ENRT_TYPE_CD;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the sum of 'Max APTC Amount' (MAX_APTC_AM) for each enrollment type with 'Open Enrollment' (ENRT_IND_CD = 1927).
SELECT ENRT_TYPE_CD, MAX(CMS_MSG_ID) AS HighestCMSMessageID FROM HIX.T_ENRT GROUP BY ENRT_TYPE_CD;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the highest 'CMS Message ID' (CMS_MSG_ID) for each enrollment type.
SELECT ENRT_TYPE_CD, DENRT_RSN_CD, MIN(CRTD_DT) AS EarliestPartialDenrollment FROM HIX.T_ENRT WHERE DENRT_RSN_CD = 8612 GROUP BY ENRT_TYPE_CD, DENRT_RSN_CD;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the earliest 'Partial Disenrollment' reason (DENRT_RSN_CD = 8612) for each enrollment type.
SELECT ENRT_TYPE_CD, AVG(PREM_PAID_DT) AS AvgPremiumAmountPaidSpecialEnrollment FROM HIX.T_ENRT WHERE ENRT_IND_CD = 1928 GROUP BY ENRT_TYPE_CD;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the average 'Premium Amount Paid' (PREM_PAID_DT) for each enrollment type with 'Special Enrollment' (ENRT_IND_CD = 1928).
SELECT ENRT_TYPE_CD, COUNT(*) AS TotalActiveRenewalEnrollments FROM HIX.T_ENRT WHERE ENRT_STATUS_CD = 430 AND ENRT_CHNG_IND = 'R' GROUP BY ENRT_TYPE_CD;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the total number of enrollments with 'Active Enrollment' status (ENRT_STATUS_CD = 430) and 'Renewal Initiated' (ENRT_CHNG_IND = 'R') for each enrollment type.
SELECT ENRT_TYPE_CD, AVG(ADJSTD_MAX_APTC_AM) AS AvgAdjustedMaxAPTCChangeEnrollment FROM HIX.T_ENRT WHERE ENRT_CHNG_IND = 'C' GROUP BY ENRT_TYPE_CD;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the average 'Adjusted Maximum APTC Amount' (ADJSTD_MAX_APTC_AM) for each enrollment type with 'Change in Enrollment' (ENRT_CHNG_IND = 'C').
SELECT ENRT_TYPE_CD, MAX(CR_MAX_APTC_AM) AS HighestCRMaxAPTCOpenEnrollment FROM HIX.T_ENRT WHERE ENRT_IND_CD = 1927 GROUP BY ENRT_TYPE_CD;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the highest 'Change Reporting Maximum APTC Amount' (CR_MAX_APTC_AM) for each enrollment type with 'Open Enrollment' (ENRT_IND_CD = 1927).
SELECT ENRT_TYPE_CD, COUNT(*) AS TotalInProgressAutoEnrollments FROM HIX.T_ENRT WHERE ENRT_STATUS_CD = 427 AND ENRT_FLOW_IN = 3797 GROUP BY ENRT_TYPE_CD;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the total number of enrollments with 'Enrollment is In Progress/Not started' status (ENRT_STATUS_CD = 427) and 'Auto' as the enrollment flow (ENRT_FLOW_IN = 3797) for each enrollment type.
SELECT MAX(EFFV_START_DT) AS HighestEffectiveStartDate FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the highest 'Effective Start Date' (EFFV_START_DT).
SELECT MAX(EFFV_END_DT) AS HighestEffectiveEndDate FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the enrollment with the highest 'Effective End Date' (EFFV_END_DT).
SELECT MAX(PLAN_ENRT_PREM_AM) AS HighestPlanEnrollmentPremiumAmount FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the enrollment with the highest 'Plan Enrollment Premium Amount' (PLAN_ENRT_PREM_AM).
SELECT MAX(PLAN_ENRT_AFTER_APTC_AM) AS HighestPlanEnrollmentAfterAPTCAmount FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the enrollment with the highest 'Plan Enrollment After APTC Amount' (PLAN_ENRT_AFTER_APTC_AM).
SELECT MAX(MAX_APTC_AM) AS HighestMaxAPTCAmount FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the highest 'Maximum APTC Amount' (MAX_APTC_AM).
SELECT MAX(CR_MAX_APTC_AM) AS HighestChangeReportingMaxAPTCAmount FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the enrollment with the highest 'Change Reporting Maximum APTC Amount' (CR_MAX_APTC_AM).
SELECT MAX(ENRT_LOGICAL_ID) AS HighestEnrollmentLogicalID FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the enrollment with the highest 'Enrollment Logical ID' (ENRT_LOGICAL_ID).
SELECT MAX(CMS_MSG_ID) AS HighestCMSMessageID FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the enrollment with the highest 'CMS Message ID' (CMS_MSG_ID).
SELECT MAX(DENRT_APPLN_ID) AS HighestDenrollmentApplnID FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the highest 'Denrollment Application ID' (DENRT_APPLN_ID).
SELECT MAX(DENRT_ENRT_FLOW_CD) AS HighestDenrollmentEnrtFlowCode FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the enrollment with the highest 'Denrollment Enrollment Flow Code' (DENRT_ENRT_FLOW_CD).
SELECT MAX(VERS_NB) AS HighestVersionNumber FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the enrollment with the highest 'Version Number' (VERS_NB).
SELECT MAX(ASSISTER_ID) AS HighestAssisterID FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the enrollment with the highest 'Assister ID' (ASSISTER_ID).
SELECT MAX(CMS_MSG_ID) AS HighestCMSMessageID FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the highest 'Center of Medical and Medicaid Services Message ID' (CMS_MSG_ID).
SELECT MAX(DENRT_APPLN_ID) AS HighestDenrollmentApplnID FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the enrollment with the highest 'Denrollment Application ID' (DENRT_APPLN_ID).
SELECT MAX(DENRT_ENRT_FLOW_CD) AS HighestDenrollmentEnrtFlowCode FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the enrollment with the highest 'Denrollment Enrollment Flow Code' (DENRT_ENRT_FLOW_CD).
SELECT MAX(MAX_APTC_AM) AS HighestMaxAPTCAmount FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the enrollment with the highest 'Maximum Advanced Premium Tax Credit' (MAX_APTC_AM).
SELECT MAX(DENRT_RSN_CD) AS HighestCoverageEndReason FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the highest 'Coverage End Initiated' reason (DENRT_RSN_CD).
SELECT MAX(DENRT_RSN_CD) AS HighestVerifyLawfulPresenceReason FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the enrollment with the highest 'Verify Lawful Presence' reason (DENRT_RSN_CD).
SELECT MAX(DENRT_RSN_CD) AS HighestAPTCRedeterminationReason FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the enrollment with the highest 'APTC Redetermination' reason (DENRT_RSN_CD).
SELECT MAX(DENRT_RSN_CD) AS HighestAgeoutRedeterminationReason FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the enrollment with the highest 'Ageout Redetermination' reason (DENRT_RSN_CD).
SELECT MAX(PLAN_ENRT_PREM_AM) AS HighestPlanEnrollmentPremiumAmount FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the highest 'Plan Enrollment Premium Amount' (PLAN_ENRT_PREM_AM).
SELECT MAX(MAX_APTC_AM) AS HighestMaxAPTCAmount FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the enrollment with the highest 'Maximum Advanced Premium Tax Credit' (MAX_APTC_AM).
SELECT MAX(DENRT_RSN_CD) AS HighestCoverageEndReason FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the enrollment with the highest 'Coverage End Initiated' reason (DENRT_RSN_CD).
SELECT MAX(DENRT_RSN_CD) AS HighestVerifyLawfulPresenceReason FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the enrollment with the highest 'Verify Lawful Presence' reason (DENRT_RSN_CD).
SELECT MAX(DENRT_RSN_CD) AS HighestAPTCRedeterminationReason FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the highest 'APTC Redetermination' reason (DENRT_RSN_CD).
SELECT MAX(DENRT_RSN_CD) AS HighestAgeoutRedeterminationReason FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the enrollment with the highest 'Ageout Redetermination' reason (DENRT_RSN_CD).
SELECT MAX(ENRT_LOGICAL_ID) AS HighestEnrollmentLogicalID FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the highest 'Enrollment Logical ID' (ENRT_LOGICAL_ID).
SELECT MAX(CMS_MSG_ID) AS HighestCMSMessageID FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the enrollment with the highest 'Center of Medical and Medicaid Services Message ID' (CMS_MSG_ID).
SELECT MAX(DENRT_APPLN_ID) AS HighestDenrollmentApplnID FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the enrollment with the highest 'Denrollment Application ID' (DENRT_APPLN_ID).
SELECT MAX(DENRT_ENRT_FLOW_CD) AS HighestDenrollmentEnrtFlowCode FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the enrollment with the highest 'Denrollment Enrollment Flow Code' (DENRT_ENRT_FLOW_CD).
SELECT MAX(VERS_NB) AS HighestVersionNumber FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the highest 'Version Number' (VERS_NB).
SELECT MAX(ASSISTER_ID) AS HighestAssisterID FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the enrollment with the highest 'Assister ID' (ASSISTER_ID).
SELECT MAX(CMS_MSG_ID) AS HighestCMSMessageID FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the enrollment with the highest 'Center of Medical and Medicaid Services Message ID' (CMS_MSG_ID).
SELECT MAX(DENRT_APPLN_ID) AS HighestDenrollmentApplnID FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the enrollment with the highest 'Denrollment Application ID' (DENRT_APPLN_ID).
SELECT MAX(DENRT_ENRT_FLOW_CD) AS HighestDenrollmentEnrtFlowCode FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the enrollment with the highest 'Denrollment Enrollment Flow Code' (DENRT_ENRT_FLOW_CD).
SELECT MAX(VERS_NB) AS HighestVersionNumber FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the enrollment with the highest 'Version Number' (VERS_NB).
SELECT MAX(ASSISTER_ID) AS HighestAssisterID FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the enrollment with the highest 'Assister ID' (ASSISTER_ID).
SELECT MAX(DENRT_APPLN_ID) AS HighestDenrollmentApplnID FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the highest 'Denrollment Application ID' (DENRT_APPLN_ID).
SELECT MAX(DENRT_ENRT_FLOW_CD) AS HighestDenrollmentEnrtFlowCode FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the enrollment with the highest 'Denrollment Enrollment Flow Code' (DENRT_ENRT_FLOW_CD).
SELECT MAX(VERS_NB) AS HighestVersionNumber FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the enrollment with the highest 'Version Number' (VERS_NB).
SELECT MAX(ASSISTER_ID) AS HighestAssisterID FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Calculate the enrollment with the highest 'Assister ID' (ASSISTER_ID).
SELECT MAX(ENRT_LOGICAL_ID) AS HighestEnrollmentLogicalID FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Retrieve the enrollment with the highest 'Enrollment Logical ID' (ENRT_LOGICAL_ID).
SELECT MAX(CMS_MSG_ID) AS HighestCMSMessageID FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Show the enrollment with the highest 'Center of Medical and Medicaid Services Message ID' (CMS_MSG_ID).
SELECT MAX(DENRT_APPLN_ID) AS HighestDenrollmentApplnID FROM HIX.T_ENRT;
HIX contains tables such as T_ENRT, T_PRSN_ENRT, T_PRSN_MBRSH. Table T_ENRT contains columns like ENRT_ID, PLAN_ENRT_DT, ENRT_STATUS_CD, PLAN_DENRT_DT, DENRT_RSN_CD, CRTD_DT, CRTD_BY_NB, UPDTD_DT, UPDTD_BY_NB, VERS_NB, PLAN_ENRT_PREM_AM, EFFV_START_DT, EFFV_END_DT, DSPL_PLAN_ID, ENRT_TYPE_CD, ADJSTD_MAX_APTC_AM, APPLN_...
Find the enrollment with the highest 'Denrollment Application ID' (DENRT_APPLN_ID).