Output stringlengths 25 230 | Context stringclasses 1
value | Input stringlengths 20 214 |
|---|---|---|
SELECT COUNT(DISTINCT 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_... | Show the count of distinct premium paid to date end values. |
SELECT COUNT(DISTINCT ENRT_ID), COUNT(DISTINCT PLAN_ENRT_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_... | Get the count of distinct enrollment IDs and distinct plan enrollment dates. |
SELECT COUNT(DISTINCT ENRT_STATUS_CD), COUNT(DISTINCT PLAN_DENRT_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_... | Find the count of distinct enrollment status codes and distinct plan disenrollment dates. |
SELECT COUNT(DISTINCT CRTD_DT), COUNT(DISTINCT CRTD_BY_NB) 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_... | Count the number of distinct create dates of enrollment and distinct user numbers who inserted the records. |
SELECT COUNT(DISTINCT UPDTD_DT), COUNT(DISTINCT UPDTD_BY_NB) 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_... | Get the count of distinct update dates of the records and distinct user numbers who updated the records. |
SELECT COUNT(DISTINCT ENRT_ID) FROM HIX.T_ENRT WHERE ENRT_STATUS_CD = 430; | 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_... | Count the number of distinct enrollment IDs for Active Enrollments. |
SELECT COUNT(DISTINCT PLAN_ENRT_DT) FROM HIX.T_ENRT WHERE ENRT_TYPE_CD = 2033; | 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 count of distinct plan enrollment dates for Qualified Health Plans. |
SELECT COUNT(DISTINCT ENRT_STATUS_CD) FROM HIX.T_ENRT WHERE PLAN_ENRT_PREM_AM > 1000; | 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_... | Get the count of distinct enrollment status codes for records with premium amounts greater than 1000. |
SELECT COUNT(DISTINCT PLAN_DENRT_DT) FROM HIX.T_ENRT WHERE APPLN_ID = 4131; | 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_... | Count the number of distinct plan disenrollment dates for Renewal Initiated applications. |
SELECT COUNT(DISTINCT DENRT_RSN_CD) FROM HIX.T_ENRT WHERE ENRT_CHNG_IND = '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_... | Find the count of distinct disenrollment reason codes for records with 'Y' in the Enrollment Change Indicator. |
SELECT COUNT(DISTINCT CRTD_DT) FROM HIX.T_ENRT WHERE ENRT_YEAR = 2023; | 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_... | Count the number of distinct create dates of enrollment for the year 2023. |
SELECT COUNT(DISTINCT CRTD_BY_NB) FROM HIX.T_ENRT WHERE 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_... | Show the count of distinct user numbers who inserted the records for Auto Enrollments. |
SELECT COUNT(DISTINCT UPDTD_DT) 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_... | Get the count of distinct update dates of the records for Special Enrollments. |
SELECT COUNT(DISTINCT UPDTD_BY_NB) FROM HIX.T_ENRT WHERE SKIP_SHOP_IN = 'N'; | 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_... | Count the number of distinct user numbers who updated the records where Skip Shopping is not selected. |
SELECT COUNT(DISTINCT VERS_NB) FROM HIX.T_ENRT WHERE MAX_APTC_AM IS NOT NULL; | 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 count of distinct version numbers for records with non-null Maximum APTC amounts. |
SELECT COUNT(DISTINCT PLAN_ENRT_PREM_AM) FROM HIX.T_ENRT WHERE ENRT_CHNG_IND = '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_... | Count the number of distinct plan enrollment premium amounts for records with 'Y' in the Enrollment Change Indicator. |
SELECT COUNT(DISTINCT EFFV_START_DT) FROM HIX.T_ENRT WHERE 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_... | Get the count of distinct effective start dates for Husky Plan enrollments. |
SELECT COUNT(DISTINCT EFFV_END_DT) FROM HIX.T_ENRT WHERE MAX_APTC_AM > 500; | 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_... | Count the number of distinct effective end dates for records with Maximum APTC amounts greater than 500. |
SELECT COUNT(DISTINCT DSPL_PLAN_ID) FROM HIX.T_ENRT WHERE ENRT_YEAR = 2022; | 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 count of distinct plan IDs for the year 2022. |
SELECT COUNT(DISTINCT ENRT_TYPE_CD) FROM HIX.T_ENRT WHERE PLAN_ENRT_PREM_AM IS NULL; | 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_... | Get the count of distinct enrollment type codes for records with null premium amounts. |
SELECT COUNT(DISTINCT ADJSTD_MAX_APTC_AM) FROM HIX.T_ENRT WHERE APPLN_ID = 4101; | 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_... | Count the number of distinct adjusted maximum APTC amounts for 90 Day applications. |
SELECT COUNT(DISTINCT APPLN_ID) FROM HIX.T_ENRT WHERE ENRT_CHNG_IND = '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_... | Find the count of distinct application IDs with 'Y' in the Enrollment Change Indicator. |
SELECT COUNT(DISTINCT CARR_POL_ID) FROM HIX.T_ENRT WHERE ENRT_IND_CD = 3752; | 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_... | Count the number of distinct carrier policy IDs for Change in Enrollment records. |
SELECT COUNT(DISTINCT PREM_PAID_DT) FROM HIX.T_ENRT WHERE PLAN_ENRT_PREM_AM IS NULL; | 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 count of distinct premium payment dates for records with null premium amounts. |
SELECT COUNT(DISTINCT CARR_EFFCTN_RCVD_DT) FROM HIX.T_ENRT WHERE ENRT_YEAR = 2024; | 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_... | Get the count of distinct carrier effectuation received dates for the year 2024. |
SELECT COUNT(DISTINCT CARR_TRMN_RCVD_DT) FROM HIX.T_ENRT WHERE ENRT_TYPE_CD = 9855; | 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_... | Count the number of distinct carrier termination received dates for Dental Plan enrollments. |
SELECT COUNT(DISTINCT MAX_APTC_AM) FROM HIX.T_ENRT WHERE PLAN_ENRT_PREM_AM > 2000; | 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 count of distinct maximum advanced premium tax credits with premium amounts greater than 2000. |
SELECT COUNT(DISTINCT CR_MAX_APTC_AM) FROM HIX.T_ENRT WHERE APPLN_ID = 6572; | 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_... | Count the number of distinct change reporting maximum advanced premium tax credits for CHIP Disenrollment Batch applications. |
SELECT COUNT(DISTINCT CR_MAX_APTC_DT) FROM HIX.T_ENRT WHERE ENRT_IND_CD = 3752; | 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 count of distinct change reporting maximum APTC dates for Change in Enrollment records. |
SELECT COUNT(DISTINCT ENRT_LOGICAL_ID) FROM HIX.T_ENRT WHERE ENRT_STATUS_CD = 431; | 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_... | Get the count of distinct enrollment logical IDs for Enrollment Canceled records. |
SELECT COUNT(DISTINCT ENRT_IND_CD) FROM HIX.T_ENRT WHERE PLAN_ENRT_PREM_AM < 1000; | 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_... | Count the number of distinct enrollment indicator codes with premium amounts less than 1000. |
SELECT COUNT(DISTINCT CARR_MSG_STATUS_ID) FROM HIX.T_ENRT WHERE APPLN_ID = 3207; | 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 count of distinct carrier message status IDs for User Initiated applications. |
SELECT COUNT(DISTINCT ASSISTER_ID) FROM HIX.T_ENRT WHERE PLAN_ENRT_PREM_AM IS NOT NULL; | 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_... | Count the number of distinct assister IDs with non-null premium amounts. |
SELECT COUNT(DISTINCT CMS_MSG_ID) FROM HIX.T_ENRT WHERE PLAN_ENRT_PREM_AM > 1500; | 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 count of distinct CMS message IDs with premium amounts greater than 1500. |
SELECT COUNT(DISTINCT ENRT_CHNG_IND) FROM HIX.T_ENRT WHERE ENRT_STATUS_CD = 4134; | 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_... | Get the count of distinct enrollment change indicators for Coverage Ended records. |
SELECT COUNT(DISTINCT ENRT_YEAR) FROM HIX.T_ENRT WHERE MAX_APTC_AM < 500; | 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_... | Count the number of distinct enrollment years with maximum APTC amounts less than 500. |
SELECT COUNT(DISTINCT ENRT_FLOW_IN) FROM HIX.T_ENRT WHERE 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_... | Find the count of distinct enrollment flow indicators for Husky Plan enrollments. |
SELECT COUNT(DISTINCT SKIP_SHOP_IN) FROM HIX.T_ENRT WHERE PLAN_ENRT_PREM_AM IS NOT NULL; | 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_... | Count the number of distinct skip shopping indicators with non-null premium amounts. |
SELECT COUNT(DISTINCT EHB_PLAN_ENRT_PREM_AM) FROM HIX.T_ENRT WHERE ENRT_IND_CD = 3752; | 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 count of distinct eligible health benefit plan enrollment premiums for Change in Enrollment records. |
SELECT COUNT(DISTINCT DENRT_APPLN_ID) FROM HIX.T_ENRT WHERE APPLN_ID = 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_... | Get the count of distinct disenrollment application IDs for 90 Day applications. |
SELECT COUNT(DISTINCT DENRT_ENRT_EDI_FLOW_CD) FROM HIX.T_ENRT WHERE ENRT_TYPE_CD = 9855; | 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_... | Count the number of distinct disenrollment enrollment flow codes for Dental Plan enrollments. |
SELECT COUNT(DISTINCT PREM_PAID_TO_DT_END) FROM HIX.T_ENRT WHERE ENRT_YEAR = 2025; | 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 count of distinct premium paid to date end values for the year 2025. |
SELECT COUNT(DISTINCT ENRT_ID), COUNT(DISTINCT PLAN_ENRT_DT) FROM HIX.T_ENRT WHERE PLAN_ENRT_PREM_AM > 2000; | 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_... | Get the count of distinct enrollment IDs and distinct plan enrollment dates with premium amounts greater than 2000. |
SELECT COUNT(DISTINCT ENRT_STATUS_CD), COUNT(DISTINCT PLAN_DENRT_DT) FROM HIX.T_ENRT WHERE ENRT_YEAR = 2024; | 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 count of distinct enrollment status codes and distinct plan disenrollment dates for the year 2024. |
SELECT COUNT(DISTINCT CRTD_DT), COUNT(DISTINCT CRTD_BY_NB) FROM HIX.T_ENRT WHERE ENRT_STATUS_CD = 432; | 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_... | Get the count of distinct create dates of enrollment and distinct user numbers who inserted the records for Disenrollment Initiated records. |
SELECT COUNT(DISTINCT UPDTD_DT), COUNT(DISTINCT UPDTD_BY_NB) 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_... | Count the number of distinct update dates of the records and distinct user numbers who updated the records for Open Enrollment records. |
SELECT COUNT(DISTINCT ENRT_ID) 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_... | Count the number of distinct enrollment IDs for Special Enrollments. |
SELECT COUNT(DISTINCT PLAN_ENRT_DT) FROM HIX.T_ENRT WHERE ENRT_TYPE_CD = 9855; | 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 count of distinct plan enrollment dates for Dental Plans. |
SELECT COUNT(DISTINCT ENRT_STATUS_CD) FROM HIX.T_ENRT WHERE PLAN_ENRT_PREM_AM > 500; | 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_... | Get the count of distinct enrollment status codes for records with premium amounts greater than 500. |
SELECT COUNT(DISTINCT PLAN_DENRT_DT) FROM HIX.T_ENRT WHERE APPLN_ID = 4133; | 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_... | Count the number of distinct plan disenrollment dates for Coverage End Initiated applications. |
SELECT COUNT(DISTINCT DENRT_RSN_CD) 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_... | Find the count of distinct disenrollment reason codes for records with 'Ninety Day' in the Reason Code. |
SELECT COUNT(DISTINCT CRTD_DT) FROM HIX.T_ENRT WHERE ENRT_YEAR = 2024; | 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_... | Count the number of distinct create dates of enrollment for the year 2024. |
SELECT COUNT(DISTINCT CRTD_BY_NB) FROM HIX.T_ENRT WHERE ENRT_FLOW_IN = 3798; | 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 count of distinct user numbers who inserted the records for First Step Enrollments. |
SELECT COUNT(DISTINCT UPDTD_DT) FROM HIX.T_ENRT WHERE 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_... | Get the count of distinct update dates of the records for Auto Enrollments. |
SELECT COUNT(DISTINCT UPDTD_BY_NB) 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_... | Count the number of distinct user numbers who updated the records where Skip Shopping is selected. |
SELECT COUNT(DISTINCT VERS_NB) FROM HIX.T_ENRT WHERE MAX_APTC_AM IS NULL; | 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 count of distinct version numbers for records with null Maximum APTC amounts. |
SELECT COUNT(DISTINCT PLAN_ENRT_PREM_AM) FROM HIX.T_ENRT WHERE ENRT_CHNG_IND = 'N'; | 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_... | Count the number of distinct plan enrollment premium amounts for records with 'N' in the Enrollment Change Indicator. |
SELECT COUNT(DISTINCT EFFV_START_DT) FROM HIX.T_ENRT WHERE ENRT_STATUS_CD = 4134; | 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 count of distinct effective start dates for Coverage Ended records. |
SELECT COUNT(DISTINCT EFFV_END_DT) FROM HIX.T_ENRT WHERE 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_... | Get the count of distinct effective end dates for Husky Plan enrollments. |
SELECT COUNT(DISTINCT DSPL_PLAN_ID) FROM HIX.T_ENRT WHERE ENRT_YEAR = 2025; | 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_... | Count the number of distinct plan IDs for the year 2025. |
SELECT COUNT(DISTINCT ENRT_TYPE_CD) FROM HIX.T_ENRT WHERE PLAN_ENRT_PREM_AM IS NOT NULL; | 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 count of distinct enrollment type codes for records with non-null premium amounts. |
SELECT COUNT(DISTINCT ADJSTD_MAX_APTC_AM) FROM HIX.T_ENRT WHERE DENRT_RSN_CD = 8341; | 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_... | Count the number of distinct adjusted maximum APTC amounts for Verify Lawful Presence applications. |
SELECT COUNT(DISTINCT APPLN_ID) FROM HIX.T_ENRT WHERE ENRT_CHNG_IND = 'N'; | 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 count of distinct application IDs with 'N' in the Enrollment Change Indicator. |
SELECT COUNT(DISTINCT CARR_POL_ID) FROM HIX.T_ENRT WHERE ENRT_TYPE_CD = 9855; | 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_... | Get the count of distinct carrier policy IDs for Dental Plan enrollments. |
SELECT COUNT(DISTINCT PREM_PAID_DT) 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_... | Count the number of distinct premium payment dates for records with '90 Day' in the Reason Code. |
SELECT COUNT(DISTINCT CARR_EFFCTN_RCVD_DT) FROM HIX.T_ENRT WHERE ENRT_YEAR = 2023; | 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 count of distinct carrier effectuation received dates for the year 2023. |
SELECT COUNT(DISTINCT CARR_TRMN_RCVD_DT) FROM HIX.T_ENRT WHERE DENRT_RSN_CD = 6572; | 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_... | Count the number of distinct carrier termination received dates for CHIP Disenrollment Batch applications. |
SELECT COUNT(DISTINCT MAX_APTC_AM) FROM HIX.T_ENRT WHERE PLAN_ENRT_PREM_AM > 1000; | 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 count of distinct maximum advanced premium tax credits with premium amounts greater than 1000. |
SELECT COUNT(DISTINCT CR_MAX_APTC_AM) FROM HIX.T_ENRT WHERE ENRT_CHNG_IND = '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_... | Get the count of distinct change reporting maximum advanced premium tax credits for records with 'Y' in the Enrollment Change Indicator. |
SELECT COUNT(DISTINCT CR_MAX_APTC_DT) FROM HIX.T_ENRT WHERE DENRT_RSN_CD = 8341; | 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_... | Count the number of distinct change reporting maximum APTC dates for Verify Lawful Presence applications. |
SELECT COUNT(DISTINCT ENRT_LOGICAL_ID) FROM HIX.T_ENRT WHERE ENRT_STATUS_CD = 430; | 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 count of distinct enrollment logical IDs for Active Enrollments. |
SELECT COUNT(DISTINCT ENRT_IND_CD) FROM HIX.T_ENRT WHERE PLAN_ENRT_PREM_AM < 1500; | 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_... | Count the number of distinct enrollment indicator codes with premium amounts less than 1500. |
SELECT COUNT(DISTINCT CARR_MSG_STATUS_ID) FROM HIX.T_ENRT WHERE ENRT_YEAR = 2022; | 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 count of distinct carrier message status IDs for the year 2022. |
SELECT COUNT(DISTINCT ASSISTER_ID) FROM HIX.T_ENRT WHERE PLAN_ENRT_PREM_AM IS NOT NULL; | 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_... | Get the count of distinct assister IDs for records with non-null premium amounts. |
SELECT COUNT(DISTINCT CMS_MSG_ID) FROM HIX.T_ENRT WHERE ENRT_YEAR = 2023; | 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_... | Count the number of distinct CMS message IDs for the year 2023. |
SELECT COUNT(DISTINCT ENRT_CHNG_IND) FROM HIX.T_ENRT WHERE MAX_APTC_AM < 2000; | 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 count of distinct enrollment change indicators for records with Maximum APTC amounts less than 2000. |
SELECT COUNT(DISTINCT ENRT_YEAR) FROM HIX.T_ENRT WHERE PLAN_ENRT_PREM_AM IS NOT NULL; | 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_... | Count the number of distinct enrollment years for records with premium amounts not null. |
SELECT COUNT(DISTINCT ENRT_FLOW_IN) FROM HIX.T_ENRT WHERE APPLN_ID = 4133; | 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 count of distinct enrollment flow indicators for Coverage End Initiated applications. |
SELECT COUNT(DISTINCT SKIP_SHOP_IN) FROM HIX.T_ENRT WHERE PLAN_ENRT_PREM_AM IS NOT NULL; | 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_... | Get the count of distinct skip shopping indicators for records with non-null premium amounts. |
SELECT COUNT(DISTINCT EHB_PLAN_ENRT_PREM_AM) FROM HIX.T_ENRT WHERE DENRT_RSN_CD = 8341; | 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_... | Count the number of distinct eligible health benefit plan enrollment premiums for Verify Lawful Presence applications. |
SELECT COUNT(DISTINCT DENRT_APPLN_ID) FROM HIX.T_ENRT WHERE ENRT_YEAR = 2024; | 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 count of distinct disenrollment application IDs for the year 2024. |
SELECT COUNT(DISTINCT DENRT_ENRT_EDI_FLOW_CD) 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_... | Count the number of distinct disenrollment enrollment flow codes for records with 'Ninety Day' in the Reason Code. |
SELECT COUNT(DISTINCT PREM_PAID_TO_DT_END) FROM HIX.T_ENRT WHERE 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_... | Show the count of distinct premium paid to date end values for records with 'Auto' in the Enrollment Flow Indicator. |
SELECT COUNT(DISTINCT ENRT_ID), COUNT(DISTINCT PLAN_ENRT_DT) FROM HIX.T_ENRT WHERE PLAN_ENRT_PREM_AM IS NOT NULL; | 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_... | Get the count of distinct enrollment IDs and distinct plan enrollment dates with premium amounts not null. |
SELECT COUNT(DISTINCT ENRT_STATUS_CD), COUNT(DISTINCT PLAN_DENRT_DT) FROM HIX.T_ENRT WHERE ENRT_FLOW_IN = 3798; | 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_... | Count the number of distinct enrollment status codes and distinct plan disenrollment dates for First Step Enrollments. |
SELECT COUNT(DISTINCT CRTD_DT), COUNT(DISTINCT CRTD_BY_NB) 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 count of distinct create dates of enrollment and distinct user numbers who inserted the records for Special Enrollments. |
SELECT COUNT(DISTINCT UPDTD_DT), COUNT(DISTINCT UPDTD_BY_NB) FROM HIX.T_ENRT WHERE ENRT_TYPE_CD = 9855; | 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_... | Count the number of distinct update dates of the records and distinct user numbers who updated the records for Dental Plans. |
SELECT ENRT_STATUS_CD, COUNT(*) FROM HIX.T_ENRT GROUP BY ENRT_STATUS_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_... | Count the number of enrollments for each enrollment status. |
SELECT ENRT_TYPE_CD, SUM(PLAN_ENRT_PREM_AM) 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 total premium amount for each enrollment type. |
SELECT APPLN_ID, AVG(MAX_APTC_AM) FROM HIX.T_ENRT GROUP BY APPLN_ID; | 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_... | Get the average maximum APTC amount for each application. |
SELECT EFFV_START_DT, COUNT(*) FROM HIX.T_ENRT GROUP BY EFFV_START_DT; | 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_... | Count the number of enrollments for each effective start date. |
SELECT ENRT_YEAR, SUM(PLAN_ENRT_PREM_AM) FROM HIX.T_ENRT GROUP BY ENRT_YEAR; | 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 total premium amount for each enrollment year. |
SELECT ENRT_FLOW_IN, AVG(PLAN_ENRT_PREM_AM) FROM HIX.T_ENRT GROUP BY ENRT_FLOW_IN; | 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_... | Get the average premium amount for each enrollment flow indicator. |
SELECT SKIP_SHOP_IN, COUNT(*) FROM HIX.T_ENRT GROUP BY SKIP_SHOP_IN; | 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_... | Count the number of enrollments for each skip shopping indicator. |
SELECT DENRT_RSN_CD, SUM(PLAN_ENRT_PREM_AM) FROM HIX.T_ENRT GROUP BY 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_... | Find the total premium amount for each disenrollment reason. |
SELECT CARR_MSG_STATUS_ID, AVG(PLAN_ENRT_PREM_AM) FROM HIX.T_ENRT GROUP BY CARR_MSG_STATUS_ID; | 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_... | Get the average premium amount for each carrier message status. |
SELECT ENRT_IND_CD, COUNT(*) FROM HIX.T_ENRT GROUP BY ENRT_IND_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_... | Count the number of enrollments for each enrollment indicator. |
SELECT APPLN_ID, SUM(PLAN_ENRT_PREM_AM) FROM HIX.T_ENRT GROUP BY APPLN_ID; | 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 total premium amount for each application. |
SELECT EFFV_END_DT, AVG(PLAN_ENRT_PREM_AM) FROM HIX.T_ENRT GROUP BY EFFV_END_DT; | 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_... | Get the average premium amount for each effective end date. |
SELECT CARR_POL_ID, COUNT(*) FROM HIX.T_ENRT GROUP BY CARR_POL_ID; | 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_... | Count the number of enrollments for each carrier policy ID. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.