SQL Trace result for Missing
FOC2525 - FOREIGN KEY IS NOT A SUPERSET OF PRIMARY KEY FOR SEGMENT: POL_TAGGI
NG_SUPPORT_BRG
FOC2509 - RDBMS-MANAGED JOIN SELECTED BUT RESULTS MAY BE INACCURATE
FOC2524 - JOIN TO A UNIQUE SEGMENT DOES NOT COVER ITS PRIMARY KEY
(FOC2689) AGGREGATION DONE ...
SELECT
T1."POL_N",
T6."GRP_CD",
SUM(T1."TTL_WRT_PREM_AMT")
FROM
ipfowner.dbo.POL_PREM_LN_MTH_SNP_F T1,
ipfowner.dbo.MTH_DIM T2,
ipfowner.dbo.POL_TAGGING_SUPPORT_BRG T5,
IPFOWNER.dbo.GRP_DIM T6,
ipfowner.dbo.DT_DIM T16,
ipfowner.dbo.DT_DIM T17
WHERE
(T2."MTH_KEY" = T1."MTH_KEY") AND
(T5."POL_CNTRCT_ID" = T1."POL_CNTRCT_ID") AND
(T6."GRP_KEY" = T5."GRP_KEY") AND
(T16."DT_KEY" = T1."POL_TERM_EXP_DT_KEY") AND
(T17."DT_KEY" = T1."POL_TERM_EFF_DT_KEY") AND
(T2."YR_MTH" = '201905') AND
(T2."YR_MTH" >= '197501') AND
(T6."GRP_CD" IS NULL) AND
(T16."DT" > CAST( '20190514' AS DATE)) AND
(T17."DT" <= CAST[ '20190514' AS DATE))
GROUP BY
T1."POL_N",
T6."GRP_CD"
ORDER BY
T1."POL_N",
T6."GRP_CD";
0 NUMBER OF RECORDS IN TABLE= 0 LINES= 0
0 HOLDING HTML FILE ON PC DISK ...
SQL Trace result for Not Missing
FOC2525 - FOREIGN KEY IS NOT A SUPERSET OF PRIMARY KEY FOR SEGMENT: POL_TAGGI
NG_SUPPORT_BRG
FOC2509 - RDBMS-MANAGED JOIN SELECTED BUT RESULTS MAY BE INACCURATE
FOC2524 - JOIN TO A UNIQUE SEGMENT DOES NOT COVER ITS PRIMARY KEY
(FOC2689) AGGREGATION DONE ...
SELECT
T1."POL_N",
T6."GRP_CD",
SUM(T1."TTL_WRT_PREM_AMT")
FROM
ipfowner.dbo.POL_PREM_LN_MTH_SNP_F T1,
ipfowner.dbo.MTH_DIM T2,
ipfowner.dbo.POL_TAGGING_SUPPORT_BRG T5,
IPFOWNER.dbo.GRP_DIM T6,
ipfowner.dbo.DT_DIM T16,
ipfowner.dbo.DT_DIM T17
WHERE
(T2."MTH_KEY" = T1."MTH_KEY") AND
(T5."POL_CNTRCT_ID" = T1."POL_CNTRCT_ID") AND
(T6."GRP_KEY" = T5."GRP_KEY") AND
(T16."DT_KEY" = T1."POL_TERM_EXP_DT_KEY") AND
(T17."DT_KEY" = T1."POL_TERM_EFF_DT_KEY") AND
(T2."YR_MTH" = '201905') AND
(T2."YR_MTH" >= '197501') AND
(T6."GRP_CD" IS NOT NULL) AND
(T16."DT" > CAST( '20190514' AS DATE)) AND
(T17."DT" <= CAST[ '20190514' AS DATE))
GROUP BY
T1."POL_N",
T6."GRP_CD"
ORDER BY
T1."POL_N",
T6."GRP_CD";
0 NUMBER OF RECORDS IN TABLE= 0 LINES= 0
0 HOLDING HTML FILE ON PC DISK ...
I also tried to Filter Group Account = _FOC_NULL or _FOC_NONE. Here is the SQL Trace for that
FOC2525 - FOREIGN KEY IS NOT A SUPERSET OF PRIMARY KEY FOR SEGMENT: POL_TAGGI
NG_SUPPORT_BRG
FOC2509 - RDBMS-MANAGED JOIN SELECTED BUT RESULTS MAY BE INACCURATE
FOC2524 - JOIN TO A UNIQUE SEGMENT DOES NOT COVER ITS PRIMARY KEY
(FOC2689) AGGREGATION DONE ...
SELECT
T1."POL_N",
T6."GRP_CD",
SUM(T1."TTL_WRT_PREM_AMT")
FROM
( ( ( ( ( ipfowner.dbo.POL_PREM_LN_MTH_SNP_F T1
INNER JOIN
ipfowner.dbo.MTH_DIM T2
ON (T2."MTH_KEY" = T1."MTH_KEY") )
LEFT OUTER JOIN
ipfowner.dbo.POL_TAGGING_SUPPORT_BRG T5
ON T5."POL_CNTRCT_ID" = T1."POL_CNTRCT_ID" )
LEFT OUTER JOIN
IPFOWNER.dbo.GRP_DIM T6
ON T6."GRP_KEY" = T5."GRP_KEY" )
INNER JOIN
ipfowner.dbo.DT_DIM T16
ON (T16."DT_KEY" = T1."POL_TERM_EXP_DT_KEY") )
INNER JOIN
ipfowner.dbo.DT_DIM T17
ON (T17."DT_KEY" = T1."POL_TERM_EFF_DT_KEY") )
WHERE
(T2."YR_MTH" = '201905') AND
(T2."YR_MTH" >= '197501') AND
(T16."DT" > CAST( '20190514' AS DATE)) AND
(T17."DT" <= CAST[ '20190514' AS DATE))
GROUP BY
T1."POL_N",
T6."GRP_CD"
ORDER BY
T1."POL_N",
T6."GRP_CD";
0 NUMBER OF RECORDS IN TABLE= 0 LINES= 0
0 HOLDING HTML FILE ON PC DISK ...
Thanks again
Application Edition
SQL Server