============================================================================ USER COMMAND: SELECT gd.PatientID, lrs.datetime, lrs.varvalue AS phtype FROM (izisprod.prod_P_GeneralData AS gd INNER JOIN (SELECT X.*, izisviews.pr_patient_in_production.patientid AS patientid FROM (EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid)) AS X) AS ip ON ip.patientid = gd.PatientID) INNER JOIN (SELECT X.*, izisviews.pr_retrieve_labres.patientid_in AS patientid_in, izisviews.pr_retrieve_labres.production AS production, izisviews.pr_retrieve_labres.resultgroup_in AS resultgroup_in FROM (EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in)) AS X) AS lrs ON lrs.patientid_in = gd.PatientID AND lrs.production = ip.production AND lrs.resultgroup_in = 'pH-type' AND lrs.varvalue = 1.0 WHERE gd.Status = 1 ORDER BY lrs.datetime, lrs.entertime DESC LIMIT 100 ---------------------------------------------------------------------------- OPTIMIZE: SELECT gd.PatientID, lrs.datetime, lrs.varvalue AS phtype FROM (izisprod.prod_P_GeneralData AS gd INNER JOIN (SELECT X.*, izisviews.pr_patient_in_production.patientid AS patientid FROM (EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid)) AS X) AS ip ON ip.patientid = gd.PatientID) INNER JOIN (SELECT X.*, izisviews.pr_retrieve_labres.patientid_in AS patientid_in, izisviews.pr_retrieve_labres.production AS production, izisviews.pr_retrieve_labres.resultgroup_in AS resultgroup_in FROM (EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in)) AS X) AS lrs ON lrs.patientid_in = gd.PatientID AND lrs.production = ip.production AND lrs.resultgroup_in = 'pH-type' AND lrs.varvalue = 1.0 WHERE gd.Status = 1 ORDER BY lrs.datetime, lrs.entertime DESC LIMIT 100 ---------------------------------------------------------------------------- GENERATE CANONICAL: SELECT gd.PatientID, lrs.datetime, lrs.varvalue AS phtype FROM (izisprod.prod_P_GeneralData AS gd INNER JOIN (SELECT X.*, izisviews.pr_patient_in_production.patientid AS patientid FROM (EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid)) AS X) AS ip ON ip.patientid = gd.PatientID) INNER JOIN (SELECT X.*, izisviews.pr_retrieve_labres.patientid_in AS patientid_in, izisviews.pr_retrieve_labres.production AS production, izisviews.pr_retrieve_labres.resultgroup_in AS resultgroup_in FROM (EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in)) AS X) AS lrs ON lrs.patientid_in = gd.PatientID AND lrs.production = ip.production AND lrs.resultgroup_in = 'pH-type' AND lrs.varvalue = 1.0 WHERE gd.Status = 1 ORDER BY lrs.datetime, lrs.entertime DESC LIMIT 100 ---------------------------------------------------------------------------- OPTIMIZE: BEGIN DECLARE boolean VARIABLES.production = (SELECT COUNT(*) = 1 AS production FROM izisprod.prod_P_GeneralData AS gd WHERE (gd.PatientID = izisviews.pr_patient_in_production.patientid) AND ((gd.Status = 1) OR ((gd.Status >= 4) AND (gd.Status <> 5)))); RETURN VARIABLES.production; END #################################################### PROCEDURE COMMAND: BEGIN DECLARE boolean VARIABLES.production = (SELECT COUNT(*) = 1 AS production FROM izisprod.prod_P_GeneralData AS gd WHERE (gd.PatientID = izisviews.pr_patient_in_production.patientid) AND ((gd.Status = 1) OR ((gd.Status >= 4) AND (gd.Status <> 5)))); RETURN VARIABLES.production; END OPTIMIZING SUB-COMMANDS: ---------------------------------------------------------------------------- OPTIMIZE: SELECT COUNT(*) = 1 AS production FROM izisprod.prod_P_GeneralData AS gd WHERE (gd.PatientID = izisviews.pr_patient_in_production.patientid) AND ((gd.Status = 1) OR ((gd.Status >= 4) AND (gd.Status <> 5))) ---------------------------------------------------------------------------- GENERATE CANONICAL: SELECT COUNT(*) = 1 AS production FROM izisprod.prod_P_GeneralData AS gd WHERE (gd.PatientID = izisviews.pr_patient_in_production.patientid) AND ((gd.Status = 1) OR ((gd.Status >= 4) AND (gd.Status <> 5))) CANONICAL PLAN: Project(groups=[anon_grp0], props={PROJECT_COLS=[anon_grp0.agg0 = 1 AS production]}) Group(groups=[anon_grp0], props={SYMBOL_MAP={anon_grp0.agg0=COUNT(*)}}) Select(groups=[izisprod.prod_P_GeneralData AS gd], props={SELECT_CRITERIA=(gd.Status = 1) OR ((gd.Status >= 4) AND (gd.Status <> 5))}) Select(groups=[izisprod.prod_P_GeneralData AS gd], props={SELECT_CRITERIA=gd.PatientID = izisviews.pr_patient_in_production.patientid}) Source(groups=[izisprod.prod_P_GeneralData AS gd]) ============================================================================ EXECUTING PlaceAccess AFTER: Project(groups=[anon_grp0], props={PROJECT_COLS=[anon_grp0.agg0 = 1 AS production]}) Group(groups=[anon_grp0], props={SYMBOL_MAP={anon_grp0.agg0=COUNT(*)}}) Select(groups=[izisprod.prod_P_GeneralData AS gd], props={SELECT_CRITERIA=(gd.Status = 1) OR ((gd.Status >= 4) AND (gd.Status <> 5))}) Select(groups=[izisprod.prod_P_GeneralData AS gd], props={SELECT_CRITERIA=gd.PatientID = izisviews.pr_patient_in_production.patientid}) Access(groups=[izisprod.prod_P_GeneralData AS gd], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04}) Source(groups=[izisprod.prod_P_GeneralData AS gd]) ============================================================================ EXECUTING PushSelectCriteria AFTER: Project(groups=[anon_grp0]) Group(groups=[anon_grp0], props={SYMBOL_MAP={anon_grp0.agg0=COUNT(*)}}) Access(groups=[izisprod.prod_P_GeneralData AS gd], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04}) Select(groups=[izisprod.prod_P_GeneralData AS gd], props={SELECT_CRITERIA=(gd.PatientID = izisviews.pr_patient_in_production.patientid) AND ((gd.Status = 1) OR ((gd.Status >= 4) AND (gd.Status <> 5)))}) Source(groups=[izisprod.prod_P_GeneralData AS gd]) ============================================================================ EXECUTING CleanCriteria AFTER: Project(groups=[anon_grp0], props={PROJECT_COLS=[anon_grp0.agg0 = 1 AS production], OUTPUT_COLS=null}) Group(groups=[anon_grp0], props={SYMBOL_MAP={anon_grp0.agg0=COUNT(*)}, OUTPUT_COLS=null}) Access(groups=[izisprod.prod_P_GeneralData AS gd], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=null}) Select(groups=[izisprod.prod_P_GeneralData AS gd], props={SELECT_CRITERIA=(gd.PatientID = izisviews.pr_patient_in_production.patientid) AND ((gd.Status = 1) OR ((gd.Status >= 4) AND (gd.Status <> 5))), OUTPUT_COLS=null}) Source(groups=[izisprod.prod_P_GeneralData AS gd], props={OUTPUT_COLS=null}) ============================================================================ EXECUTING RaiseAccess AFTER: Access(groups=[anon_grp0], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=null}) Project(groups=[anon_grp0], props={PROJECT_COLS=[anon_grp0.agg0 = 1 AS production], OUTPUT_COLS=null}) Group(groups=[anon_grp0], props={SYMBOL_MAP={anon_grp0.agg0=COUNT(*)}, OUTPUT_COLS=null}) Select(groups=[izisprod.prod_P_GeneralData AS gd], props={SELECT_CRITERIA=(gd.PatientID = izisviews.pr_patient_in_production.patientid) AND ((gd.Status = 1) OR ((gd.Status >= 4) AND (gd.Status <> 5))), OUTPUT_COLS=null}) Source(groups=[izisprod.prod_P_GeneralData AS gd]) ============================================================================ EXECUTING PushAggregates AFTER: Access(groups=[anon_grp0]) Project(groups=[anon_grp0]) Group(groups=[anon_grp0]) Select(groups=[izisprod.prod_P_GeneralData AS gd]) Source(groups=[izisprod.prod_P_GeneralData AS gd]) ============================================================================ EXECUTING AssignOutputElements AFTER: Access(groups=[anon_grp0], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=[anon_grp0.agg0 = 1 AS production]}) Project(groups=[anon_grp0], props={PROJECT_COLS=[anon_grp0.agg0 = 1 AS production], OUTPUT_COLS=[anon_grp0.agg0 = 1 AS production]}) Group(groups=[anon_grp0], props={SYMBOL_MAP={anon_grp0.agg0=COUNT(*)}, OUTPUT_COLS=[anon_grp0.agg0]}) Select(groups=[izisprod.prod_P_GeneralData AS gd], props={SELECT_CRITERIA=(gd.PatientID = izisviews.pr_patient_in_production.patientid) AND ((gd.Status = 1) OR ((gd.Status >= 4) AND (gd.Status <> 5))), OUTPUT_COLS=[]}) Source(groups=[izisprod.prod_P_GeneralData AS gd], props={OUTPUT_COLS=[gd.PatientID, gd.Status]}) ============================================================================ EXECUTING CalculateCost AFTER: Access(groups=[anon_grp0], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=[anon_grp0.agg0 = 1 AS production], EST_CARDINALITY=1.0, EST_COL_STATS={anon_grp0.agg0 = 1=[1.0, 1.0, -1.0]}}) Project(groups=[anon_grp0], props={PROJECT_COLS=[anon_grp0.agg0 = 1 AS production], OUTPUT_COLS=[anon_grp0.agg0 = 1 AS production], EST_CARDINALITY=1.0, EST_COL_STATS={anon_grp0.agg0 = 1=[1.0, 1.0, -1.0]}}) Group(groups=[anon_grp0], props={SYMBOL_MAP={anon_grp0.agg0=COUNT(*)}, OUTPUT_COLS=[anon_grp0.agg0], EST_CARDINALITY=1.0, EST_COL_STATS={anon_grp0.agg0=[1.0, 1.0, -1.0]}}) Select(groups=[izisprod.prod_P_GeneralData AS gd], props={SELECT_CRITERIA=(gd.PatientID = izisviews.pr_patient_in_production.patientid) AND ((gd.Status = 1) OR ((gd.Status >= 4) AND (gd.Status <> 5))), OUTPUT_COLS=[], EST_CARDINALITY=13.75, EST_COL_STATS={}}) Source(groups=[izisprod.prod_P_GeneralData AS gd], props={OUTPUT_COLS=[gd.PatientID, gd.Status], EST_COL_STATS={gd.PatientID=[20.0, 200.0, -1.0], gd.Status=[20.0, 200.0, -1.0]}, EST_CARDINALITY=400.0}) ============================================================================ EXECUTING MergeCriteria AFTER: Access(groups=[anon_grp0]) Project(groups=[anon_grp0]) Group(groups=[anon_grp0]) Select(groups=[izisprod.prod_P_GeneralData AS gd]) Source(groups=[izisprod.prod_P_GeneralData AS gd]) ============================================================================ EXECUTING PlanSorts AFTER: Access(groups=[anon_grp0]) Project(groups=[anon_grp0]) Group(groups=[anon_grp0]) Select(groups=[izisprod.prod_P_GeneralData AS gd]) Source(groups=[izisprod.prod_P_GeneralData AS gd]) ============================================================================ EXECUTING CollapseSource AFTER: Access(groups=[anon_grp0], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=[anon_grp0.agg0 = 1 AS production], EST_CARDINALITY=1.0, EST_COL_STATS={anon_grp0.agg0 = 1=[1.0, 1.0, -1.0]}, ATOMIC_REQUEST=SELECT COUNT(*) = 1 AS production FROM izisprod.prod_P_GeneralData AS gd WHERE (gd.PatientID = izisviews.pr_patient_in_production.patientid) AND ((gd.Status = 1) OR ((gd.Status >= 4) AND (gd.Status <> 5)))}) ============================================================================ CONVERTING PLAN TREE TO PROCESS TREE PROCESS PLAN = AccessNode(1) output=[anon_grp0.agg0 = 1 AS production] SELECT COUNT(*) = 1 FROM izisprod.prod_P_GeneralData AS g_0 WHERE (g_0.PatientID = izisviews.pr_patient_in_production.patientid) AND ((g_0.Status = 1) OR ((g_0.Status >= 4) AND (g_0.Status <> 5))) ============================================================================ ---------------------------------------------------------------------------- OPTIMIZATION COMPLETE: PROCESSOR PLAN: AccessNode(1) output=[anon_grp0.agg0 = 1 AS production] SELECT COUNT(*) = 1 FROM izisprod.prod_P_GeneralData AS g_0 WHERE (g_0.PatientID = izisviews.pr_patient_in_production.patientid) AND ((g_0.Status = 1) OR ((g_0.Status >= 4) AND (g_0.Status <> 5))) ============================================================================ ASSIGNMENT DECLARE boolean VARIABLES.production = (SELECT anon_grp0.agg0 = 1 AS production FROM izisprod.prod_P_GeneralData AS gd WHERE (gd.PatientID = izisviews.pr_patient_in_production.patientid) AND ((gd.Status = 1) OR ((gd.Status >= 4) AND (gd.Status <> 5)))); ASSIGNMENT RETURN VARIABLES.production; #################################################### #################################################### PROCEDURE PLAN :ProcedurePlan: PROGRAM counter 0 0: ASSIGNMENT INSTRUCTION: VARIABLES.production 1: ASSIGNMENT INSTRUCTION: izisviews.pr_patient_in_production.production 2: RETURN #################################################### ---------------------------------------------------------------------------- OPTIMIZATION COMPLETE: PROCESSOR PLAN: ProcedurePlan: PROGRAM counter 0 0: ASSIGNMENT INSTRUCTION: VARIABLES.production 1: ASSIGNMENT INSTRUCTION: izisviews.pr_patient_in_production.production 2: RETURN ============================================================================ ---------------------------------------------------------------------------- OPTIMIZE: BEGIN CREATE LOCAL TEMPORARY TABLE #tmp_pr_retrieve_labres (patientid integer NOT NULL, variableid integer NOT NULL, resultgroup string NOT NULL, datetime timestamp NOT NULL, entertime timestamp NOT NULL, varvalue float, stringvalue string, PRIMARY KEY(patientid, variableid, datetime)); IF(izisviews.pr_retrieve_labres.production = TRUE) BEGIN INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(lcv.Status, 8) = 8 AND bitand(lcv.Status, 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1; END ELSE BEGIN INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(lcv.Status, 8) = 8 AND bitand(lcv.Status, 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1; END SELECT * FROM #tmp_pr_retrieve_labres; DROP TABLE #tmp_pr_retrieve_labres; END #################################################### PROCEDURE COMMAND: BEGIN CREATE LOCAL TEMPORARY TABLE #tmp_pr_retrieve_labres (patientid integer NOT NULL, variableid integer NOT NULL, resultgroup string NOT NULL, datetime timestamp NOT NULL, entertime timestamp NOT NULL, varvalue float, stringvalue string, PRIMARY KEY(patientid, variableid, datetime)); IF(izisviews.pr_retrieve_labres.production = TRUE) BEGIN INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1; END ELSE BEGIN INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1; END SELECT #tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue FROM #tmp_pr_retrieve_labres; DROP TABLE #tmp_pr_retrieve_labres; END OPTIMIZING SUB-COMMANDS: ---------------------------------------------------------------------------- OPTIMIZE: CREATE LOCAL TEMPORARY TABLE #tmp_pr_retrieve_labres (patientid integer NOT NULL, variableid integer NOT NULL, resultgroup string NOT NULL, datetime timestamp NOT NULL, entertime timestamp NOT NULL, varvalue float, stringvalue string, PRIMARY KEY(patientid, variableid, datetime)) ---------------------------------------------------------------------------- GENERATE CANONICAL: CREATE LOCAL TEMPORARY TABLE #tmp_pr_retrieve_labres (patientid integer NOT NULL, variableid integer NOT NULL, resultgroup string NOT NULL, datetime timestamp NOT NULL, entertime timestamp NOT NULL, varvalue float, stringvalue string, PRIMARY KEY(patientid, variableid, datetime)) CANONICAL PLAN: Project(groups=[], props={PROJECT_COLS=[Count]}) Source(groups=[#tmp_pr_retrieve_labres], props={ATOMIC_REQUEST=CREATE LOCAL TEMPORARY TABLE #tmp_pr_retrieve_labres (patientid integer NOT NULL, variableid integer NOT NULL, resultgroup string NOT NULL, datetime timestamp NOT NULL, entertime timestamp NOT NULL, varvalue float, stringvalue string, PRIMARY KEY(patientid, variableid, datetime)), VIRTUAL_COMMAND=CREATE LOCAL TEMPORARY TABLE #tmp_pr_retrieve_labres (patientid integer NOT NULL, variableid integer NOT NULL, resultgroup string NOT NULL, datetime timestamp NOT NULL, entertime timestamp NOT NULL, varvalue float, stringvalue string, PRIMARY KEY(patientid, variableid, datetime))}) ============================================================================ EXECUTING PlaceAccess AFTER: Project(groups=[], props={PROJECT_COLS=[Count]}) Access(groups=[#tmp_pr_retrieve_labres], props={SOURCE_HINT=null, MODEL_ID=__TEMP__}) Source(groups=[#tmp_pr_retrieve_labres], props={ATOMIC_REQUEST=CREATE LOCAL TEMPORARY TABLE #tmp_pr_retrieve_labres (patientid integer NOT NULL, variableid integer NOT NULL, resultgroup string NOT NULL, datetime timestamp NOT NULL, entertime timestamp NOT NULL, varvalue float, stringvalue string, PRIMARY KEY(patientid, variableid, datetime)), VIRTUAL_COMMAND=CREATE LOCAL TEMPORARY TABLE #tmp_pr_retrieve_labres (patientid integer NOT NULL, variableid integer NOT NULL, resultgroup string NOT NULL, datetime timestamp NOT NULL, entertime timestamp NOT NULL, varvalue float, stringvalue string, PRIMARY KEY(patientid, variableid, datetime))}) ============================================================================ EXECUTING RaiseAccess AFTER: Access(groups=[#tmp_pr_retrieve_labres], props={SOURCE_HINT=null, MODEL_ID=__TEMP__}) Project(groups=[], props={PROJECT_COLS=[Count]}) Source(groups=[#tmp_pr_retrieve_labres], props={ATOMIC_REQUEST=CREATE LOCAL TEMPORARY TABLE #tmp_pr_retrieve_labres (patientid integer NOT NULL, variableid integer NOT NULL, resultgroup string NOT NULL, datetime timestamp NOT NULL, entertime timestamp NOT NULL, varvalue float, stringvalue string, PRIMARY KEY(patientid, variableid, datetime)), VIRTUAL_COMMAND=CREATE LOCAL TEMPORARY TABLE #tmp_pr_retrieve_labres (patientid integer NOT NULL, variableid integer NOT NULL, resultgroup string NOT NULL, datetime timestamp NOT NULL, entertime timestamp NOT NULL, varvalue float, stringvalue string, PRIMARY KEY(patientid, variableid, datetime))}) ============================================================================ EXECUTING AssignOutputElements AFTER: Access(groups=[#tmp_pr_retrieve_labres], props={SOURCE_HINT=null, MODEL_ID=__TEMP__, OUTPUT_COLS=[Count]}) Project(groups=[], props={PROJECT_COLS=[Count], OUTPUT_COLS=[Count]}) Source(groups=[#tmp_pr_retrieve_labres], props={ATOMIC_REQUEST=CREATE LOCAL TEMPORARY TABLE #tmp_pr_retrieve_labres (patientid integer NOT NULL, variableid integer NOT NULL, resultgroup string NOT NULL, datetime timestamp NOT NULL, entertime timestamp NOT NULL, varvalue float, stringvalue string, PRIMARY KEY(patientid, variableid, datetime)), VIRTUAL_COMMAND=CREATE LOCAL TEMPORARY TABLE #tmp_pr_retrieve_labres (patientid integer NOT NULL, variableid integer NOT NULL, resultgroup string NOT NULL, datetime timestamp NOT NULL, entertime timestamp NOT NULL, varvalue float, stringvalue string, PRIMARY KEY(patientid, variableid, datetime)), OUTPUT_COLS=[Count]}) ============================================================================ EXECUTING CalculateCost AFTER: Access(groups=[#tmp_pr_retrieve_labres], props={SOURCE_HINT=null, MODEL_ID=__TEMP__, OUTPUT_COLS=[Count], EST_CARDINALITY=256.0, EST_COL_STATS={Count=[-1.0, -1.0, -1.0]}}) Project(groups=[], props={PROJECT_COLS=[Count], OUTPUT_COLS=[Count], EST_CARDINALITY=256.0, EST_COL_STATS={Count=[-1.0, -1.0, -1.0]}}) Source(groups=[#tmp_pr_retrieve_labres], props={ATOMIC_REQUEST=CREATE LOCAL TEMPORARY TABLE #tmp_pr_retrieve_labres (patientid integer NOT NULL, variableid integer NOT NULL, resultgroup string NOT NULL, datetime timestamp NOT NULL, entertime timestamp NOT NULL, varvalue float, stringvalue string, PRIMARY KEY(patientid, variableid, datetime)), VIRTUAL_COMMAND=CREATE LOCAL TEMPORARY TABLE #tmp_pr_retrieve_labres (patientid integer NOT NULL, variableid integer NOT NULL, resultgroup string NOT NULL, datetime timestamp NOT NULL, entertime timestamp NOT NULL, varvalue float, stringvalue string, PRIMARY KEY(patientid, variableid, datetime)), OUTPUT_COLS=[Count], EST_CARDINALITY=256.0}) ============================================================================ EXECUTING PlanSorts AFTER: Access(groups=[#tmp_pr_retrieve_labres]) Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) ============================================================================ EXECUTING CollapseSource AFTER: Access(groups=[#tmp_pr_retrieve_labres], props={SOURCE_HINT=null, MODEL_ID=__TEMP__, OUTPUT_COLS=[Count], EST_CARDINALITY=256.0, EST_COL_STATS={Count=[-1.0, -1.0, -1.0]}, ATOMIC_REQUEST=CREATE LOCAL TEMPORARY TABLE #tmp_pr_retrieve_labres (patientid integer NOT NULL, variableid integer NOT NULL, resultgroup string NOT NULL, datetime timestamp NOT NULL, entertime timestamp NOT NULL, varvalue float, stringvalue string, PRIMARY KEY(patientid, variableid, datetime))}) ============================================================================ CONVERTING PLAN TREE TO PROCESS TREE PROCESS PLAN = AccessNode(2) output=[Count] CREATE LOCAL TEMPORARY TABLE #tmp_pr_retrieve_labres (patientid integer NOT NULL, variableid integer NOT NULL, resultgroup string NOT NULL, datetime timestamp NOT NULL, entertime timestamp NOT NULL, varvalue float, stringvalue string, PRIMARY KEY(patientid, variableid, datetime)) ============================================================================ ---------------------------------------------------------------------------- OPTIMIZATION COMPLETE: PROCESSOR PLAN: AccessNode(2) output=[Count] CREATE LOCAL TEMPORARY TABLE #tmp_pr_retrieve_labres (patientid integer NOT NULL, variableid integer NOT NULL, resultgroup string NOT NULL, datetime timestamp NOT NULL, entertime timestamp NOT NULL, varvalue float, stringvalue string, PRIMARY KEY(patientid, variableid, datetime)) ============================================================================ ---------------------------------------------------------------------------- OPTIMIZE: INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1 ---------------------------------------------------------------------------- GENERATE CANONICAL: INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1 CANONICAL PLAN: Project(groups=[], props={PROJECT_COLS=[Count], INTO_GROUP=#tmp_pr_retrieve_labres}) Source(groups=[#tmp_pr_retrieve_labres], props={ATOMIC_REQUEST=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1, VIRTUAL_COMMAND=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1}) Project(groups=[f], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue]}) Select(groups=[f], props={SELECT_CRITERIA=f.rang = 1}) Source(groups=[f], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1, SYMBOL_MAP={f.variableid=v.variableid, f.SampleTime=v.SampleTime, f.EnterTime=v.EnterTime, f.varvalue=v.varvalue, f.StringValue=v.StringValue, f.rang=ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC)}}) Project(groups=[v], props={PROJECT_COLS=[v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang], HAS_WINDOW_FUNCTIONS=true}) Select(groups=[v], props={SELECT_CRITERIA=v.rang = 1}) Source(groups=[v], props={NESTED_COMMAND=SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v.variableid=lcv.variableid_nieuw, v.SampleTime=lcv.SampleTime, v.EnterTime=lcv.EnterTime, v.varvalue=lcv.varvalue, v.StringValue=lcv.StringValue, v.rang=ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC)}}) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={PROJECT_COLS=[lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang], HAS_WINDOW_FUNCTIONS=true}) Select(groups=[wodandb.wodan_varmapping AS vm], props={SELECT_CRITERIA=vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in}) Select(groups=[wodandb.wodan_varmapping AS vm], props={SELECT_CRITERIA=vm.tablename = 'la'}) Join(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm, izisprod.prod_U_PV_LabCorrectValues AS lcv], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID, lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in, bitand(convert(lcv.Status, integer), 8) = 8, bitand(convert(lcv.Status, integer), 2) <> 2]}) Join(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[vm.variableid = lm.Labogroep]}) Source(groups=[wodandb.wodan_varmapping AS vm]) Source(groups=[izisprod.prod_U_P_LabMapping AS lm]) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) ============================================================================ EXECUTING PlaceAccess AFTER: Project(groups=[], props={PROJECT_COLS=[Count], INTO_GROUP=#tmp_pr_retrieve_labres}) Source(groups=[#tmp_pr_retrieve_labres], props={ATOMIC_REQUEST=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1, VIRTUAL_COMMAND=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1}) Project(groups=[f], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue]}) Select(groups=[f], props={SELECT_CRITERIA=f.rang = 1}) Source(groups=[f], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1, SYMBOL_MAP={f.variableid=v.variableid, f.SampleTime=v.SampleTime, f.EnterTime=v.EnterTime, f.varvalue=v.varvalue, f.StringValue=v.StringValue, f.rang=ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC)}}) Project(groups=[v], props={PROJECT_COLS=[v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang], HAS_WINDOW_FUNCTIONS=true}) Select(groups=[v], props={SELECT_CRITERIA=v.rang = 1}) Source(groups=[v], props={NESTED_COMMAND=SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v.variableid=lcv.variableid_nieuw, v.SampleTime=lcv.SampleTime, v.EnterTime=lcv.EnterTime, v.varvalue=lcv.varvalue, v.StringValue=lcv.StringValue, v.rang=ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC)}}) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={PROJECT_COLS=[lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang], HAS_WINDOW_FUNCTIONS=true}) Select(groups=[wodandb.wodan_varmapping AS vm], props={SELECT_CRITERIA=vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in}) Select(groups=[wodandb.wodan_varmapping AS vm], props={SELECT_CRITERIA=vm.tablename = 'la'}) Join(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm, izisprod.prod_U_PV_LabCorrectValues AS lcv], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID, lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in, bitand(convert(lcv.Status, integer), 8) = 8, bitand(convert(lcv.Status, integer), 2) <> 2]}) Join(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[vm.variableid = lm.Labogroep]}) Access(groups=[wodandb.wodan_varmapping AS vm], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302}) Source(groups=[wodandb.wodan_varmapping AS vm]) Access(groups=[izisprod.prod_U_P_LabMapping AS lm], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04}) Source(groups=[izisprod.prod_U_P_LabMapping AS lm]) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04}) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) ============================================================================ EXECUTING AssignOutputElements AFTER: Project(groups=[], props={PROJECT_COLS=[Count], INTO_GROUP=#tmp_pr_retrieve_labres, OUTPUT_COLS=[Count]}) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue], OUTPUT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue]}) Select(groups=[f], props={SELECT_CRITERIA=f.rang = 1, OUTPUT_COLS=[f.variableid, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue]}) Source(groups=[f], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1, SYMBOL_MAP={f.rang=ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC), f.variableid=v.variableid, f.SampleTime=v.SampleTime, f.EnterTime=v.EnterTime, f.varvalue=v.varvalue, f.StringValue=v.StringValue}, OUTPUT_COLS=[f.rang, f.variableid, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue]}) Project(groups=[v], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue]}) Select(groups=[v], props={SELECT_CRITERIA=v.rang = 1, OUTPUT_COLS=[v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue]}) Source(groups=[v], props={NESTED_COMMAND=SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v.rang=ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC), v.variableid=lcv.variableid_nieuw, v.SampleTime=lcv.SampleTime, v.EnterTime=lcv.EnterTime, v.varvalue=lcv.varvalue, v.StringValue=lcv.StringValue}, OUTPUT_COLS=[v.rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue]}) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) Select(groups=[wodandb.wodan_varmapping AS vm], props={SELECT_CRITERIA=vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in, OUTPUT_COLS=[lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) Select(groups=[wodandb.wodan_varmapping AS vm], props={SELECT_CRITERIA=vm.tablename = 'la', OUTPUT_COLS=[vm.resultgroup, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) Join(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm, izisprod.prod_U_PV_LabCorrectValues AS lcv], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID, lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in, bitand(convert(lcv.Status, integer), 8) = 8, bitand(convert(lcv.Status, integer), 2) <> 2], OUTPUT_COLS=[vm.tablename, vm.resultgroup, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) Join(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[vm.variableid = lm.Labogroep], OUTPUT_COLS=[lm.VariableID, vm.tablename, vm.resultgroup]}) Access(groups=[wodandb.wodan_varmapping AS vm], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=[vm.variableid, vm.tablename, vm.resultgroup]}) Source(groups=[wodandb.wodan_varmapping AS vm], props={OUTPUT_COLS=[vm.variableid, vm.tablename, vm.resultgroup]}) Access(groups=[izisprod.prod_U_P_LabMapping AS lm], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=[lm.Labogroep, lm.VariableID]}) Source(groups=[izisprod.prod_U_P_LabMapping AS lm], props={OUTPUT_COLS=[lm.Labogroep, lm.VariableID]}) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=[lcv.variableid_oud, lcv.PatientID, lcv.Status, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={OUTPUT_COLS=[lcv.variableid_oud, lcv.PatientID, lcv.Status, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) ============================================================================ EXECUTING PushSelectCriteria AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f]) Select(groups=[f], props={SELECT_CRITERIA=f.rang = 1, OUTPUT_COLS=[f.variableid, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue]}) Source(groups=[f], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1, SYMBOL_MAP={f.rang=ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC), f.variableid=v.variableid, f.SampleTime=v.SampleTime, f.EnterTime=v.EnterTime, f.varvalue=v.varvalue, f.StringValue=v.StringValue}, OUTPUT_COLS=[f.rang, f.variableid, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue]}) Project(groups=[v], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue]}) Select(groups=[v], props={SELECT_CRITERIA=v.rang = 1, OUTPUT_COLS=[v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue]}) Source(groups=[v], props={NESTED_COMMAND=SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v.rang=ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC), v.variableid=lcv.variableid_nieuw, v.SampleTime=lcv.SampleTime, v.EnterTime=lcv.EnterTime, v.varvalue=lcv.varvalue, v.StringValue=lcv.StringValue}, OUTPUT_COLS=[v.rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue]}) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) Join(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm, izisprod.prod_U_PV_LabCorrectValues AS lcv], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID, lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in, bitand(convert(lcv.Status, integer), 8) = 8, bitand(convert(lcv.Status, integer), 2) <> 2], OUTPUT_COLS=[vm.tablename, vm.resultgroup, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) Join(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[vm.variableid = lm.Labogroep], OUTPUT_COLS=[lm.VariableID, vm.tablename, vm.resultgroup]}) Access(groups=[wodandb.wodan_varmapping AS vm], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=[vm.variableid, vm.tablename, vm.resultgroup]}) Select(groups=[wodandb.wodan_varmapping AS vm], props={SELECT_CRITERIA=(vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), OUTPUT_COLS=[lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) Source(groups=[wodandb.wodan_varmapping AS vm], props={OUTPUT_COLS=[vm.variableid, vm.tablename, vm.resultgroup]}) Access(groups=[izisprod.prod_U_P_LabMapping AS lm]) Source(groups=[izisprod.prod_U_P_LabMapping AS lm]) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) ============================================================================ EXECUTING MergeVirtual AFTER: Project(groups=[], props={PROJECT_COLS=[Count], INTO_GROUP=#tmp_pr_retrieve_labres, OUTPUT_COLS=[Count]}) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f]) Select(groups=[f]) Source(groups=[f], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1, SYMBOL_MAP={f.rang=ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC), f.variableid=v.variableid, f.SampleTime=v.SampleTime, f.EnterTime=v.EnterTime, f.varvalue=v.varvalue, f.StringValue=v.StringValue}, OUTPUT_COLS=[f.rang, f.variableid, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue]}) Project(groups=[v], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue]}) Select(groups=[v]) Source(groups=[v], props={NESTED_COMMAND=SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v.rang=ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC), v.variableid=lcv.variableid_nieuw, v.SampleTime=lcv.SampleTime, v.EnterTime=lcv.EnterTime, v.varvalue=lcv.varvalue, v.StringValue=lcv.StringValue}, OUTPUT_COLS=[v.rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue]}) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) Join(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm, izisprod.prod_U_PV_LabCorrectValues AS lcv]) Join(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm]) Access(groups=[wodandb.wodan_varmapping AS vm]) Select(groups=[wodandb.wodan_varmapping AS vm]) Source(groups=[wodandb.wodan_varmapping AS vm]) Access(groups=[izisprod.prod_U_P_LabMapping AS lm]) Source(groups=[izisprod.prod_U_P_LabMapping AS lm]) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) ============================================================================ EXECUTING PushNonJoinCriteria AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f]) Select(groups=[f]) Source(groups=[f]) Project(groups=[v]) Select(groups=[v]) Source(groups=[v]) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Join(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm, izisprod.prod_U_PV_LabCorrectValues AS lcv], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID], OUTPUT_COLS=[vm.tablename, vm.resultgroup, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) Join(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[vm.variableid = lm.Labogroep], OUTPUT_COLS=[lm.VariableID, vm.tablename, vm.resultgroup]}) Access(groups=[wodandb.wodan_varmapping AS vm]) Select(groups=[wodandb.wodan_varmapping AS vm]) Source(groups=[wodandb.wodan_varmapping AS vm]) Access(groups=[izisprod.prod_U_P_LabMapping AS lm]) Source(groups=[izisprod.prod_U_P_LabMapping AS lm]) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 2) <> 2}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 8) = 8}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in}) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=[lcv.variableid_oud, lcv.PatientID, lcv.Status, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) ============================================================================ EXECUTING PushSelectCriteria AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f]) Select(groups=[f], props={SELECT_CRITERIA=f.rang = 1, OUTPUT_COLS=[f.variableid, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue]}) Source(groups=[f], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1, SYMBOL_MAP={f.rang=ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC), f.variableid=v.variableid, f.SampleTime=v.SampleTime, f.EnterTime=v.EnterTime, f.varvalue=v.varvalue, f.StringValue=v.StringValue}, OUTPUT_COLS=[f.rang, f.variableid, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue]}) Project(groups=[v], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue]}) Select(groups=[v], props={SELECT_CRITERIA=v.rang = 1, OUTPUT_COLS=[v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue]}) Source(groups=[v], props={NESTED_COMMAND=SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v.rang=ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC), v.variableid=lcv.variableid_nieuw, v.SampleTime=lcv.SampleTime, v.EnterTime=lcv.EnterTime, v.varvalue=lcv.varvalue, v.StringValue=lcv.StringValue}, OUTPUT_COLS=[v.rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue]}) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) Join(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm, izisprod.prod_U_PV_LabCorrectValues AS lcv], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID], OUTPUT_COLS=[vm.tablename, vm.resultgroup, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) Join(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm]) Access(groups=[wodandb.wodan_varmapping AS vm]) Select(groups=[wodandb.wodan_varmapping AS vm]) Source(groups=[wodandb.wodan_varmapping AS vm]) Access(groups=[izisprod.prod_U_P_LabMapping AS lm]) Source(groups=[izisprod.prod_U_P_LabMapping AS lm]) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 8) = 8}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 2) <> 2}) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=[lcv.variableid_oud, lcv.PatientID, lcv.Status, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in}) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={OUTPUT_COLS=[lcv.variableid_oud, lcv.PatientID, lcv.Status, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) ============================================================================ EXECUTING CleanCriteria AFTER: Project(groups=[], props={PROJECT_COLS=[Count], INTO_GROUP=#tmp_pr_retrieve_labres, OUTPUT_COLS=null}) Source(groups=[#tmp_pr_retrieve_labres], props={ATOMIC_REQUEST=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1, VIRTUAL_COMMAND=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1, OUTPUT_COLS=null}) Project(groups=[f], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue], OUTPUT_COLS=null}) Select(groups=[f], props={SELECT_CRITERIA=f.rang = 1, OUTPUT_COLS=null}) Source(groups=[f], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1, SYMBOL_MAP={f.rang=ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC), f.variableid=v.variableid, f.SampleTime=v.SampleTime, f.EnterTime=v.EnterTime, f.varvalue=v.varvalue, f.StringValue=v.StringValue}, OUTPUT_COLS=null}) Project(groups=[v], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=null}) Select(groups=[v], props={SELECT_CRITERIA=v.rang = 1, OUTPUT_COLS=null}) Source(groups=[v], props={NESTED_COMMAND=SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v.rang=ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC), v.variableid=lcv.variableid_nieuw, v.SampleTime=lcv.SampleTime, v.EnterTime=lcv.EnterTime, v.varvalue=lcv.varvalue, v.StringValue=lcv.StringValue}, OUTPUT_COLS=null}) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=null}) Join(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm, izisprod.prod_U_PV_LabCorrectValues AS lcv], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID], OUTPUT_COLS=null}) Join(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[vm.variableid = lm.Labogroep], OUTPUT_COLS=null}) Access(groups=[wodandb.wodan_varmapping AS vm], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=null}) Select(groups=[wodandb.wodan_varmapping AS vm], props={SELECT_CRITERIA=(vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), OUTPUT_COLS=null}) Source(groups=[wodandb.wodan_varmapping AS vm], props={OUTPUT_COLS=null}) Access(groups=[izisprod.prod_U_P_LabMapping AS lm], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=null}) Source(groups=[izisprod.prod_U_P_LabMapping AS lm], props={OUTPUT_COLS=null}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 8) = 8, OUTPUT_COLS=null}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 2) <> 2, OUTPUT_COLS=null}) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=null}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in, OUTPUT_COLS=null}) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={OUTPUT_COLS=null}) ============================================================================ EXECUTING RaiseAccess LOW [Relational Planner] bitand function not supported by source izisprod - bitand(convert(lcv.Status, integer), 2) was not pushed AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f]) Select(groups=[f]) Source(groups=[f]) Project(groups=[v]) Select(groups=[v]) Source(groups=[v]) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Join(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm, izisprod.prod_U_PV_LabCorrectValues AS lcv], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID], OUTPUT_COLS=null}) Join(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[vm.variableid = lm.Labogroep], OUTPUT_COLS=null}) Access(groups=[wodandb.wodan_varmapping AS vm], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=null}) Select(groups=[wodandb.wodan_varmapping AS vm]) Source(groups=[wodandb.wodan_varmapping AS vm]) Access(groups=[izisprod.prod_U_P_LabMapping AS lm], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=null}) Source(groups=[izisprod.prod_U_P_LabMapping AS lm]) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 8) = 8, OUTPUT_COLS=null}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 2) <> 2, OUTPUT_COLS=null}) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=null}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) ============================================================================ EXECUTING CopyCriteria AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f]) Select(groups=[f], props={SELECT_CRITERIA=f.rang = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[f]) Project(groups=[v]) Select(groups=[v], props={SELECT_CRITERIA=v.rang = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[v]) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Join(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm, izisprod.prod_U_PV_LabCorrectValues AS lcv], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID], OUTPUT_COLS=null, IS_COPIED=true}) Join(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[vm.variableid = lm.Labogroep], OUTPUT_COLS=null, IS_COPIED=true}) Access(groups=[wodandb.wodan_varmapping AS vm]) Select(groups=[wodandb.wodan_varmapping AS vm], props={SELECT_CRITERIA=(vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[wodandb.wodan_varmapping AS vm]) Access(groups=[izisprod.prod_U_P_LabMapping AS lm]) Source(groups=[izisprod.prod_U_P_LabMapping AS lm]) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 8) = 8, OUTPUT_COLS=null, IS_COPIED=true}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 2) <> 2, OUTPUT_COLS=null, IS_COPIED=true}) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) ============================================================================ EXECUTING CleanCriteria AFTER: Project(groups=[], props={PROJECT_COLS=[Count], INTO_GROUP=#tmp_pr_retrieve_labres, OUTPUT_COLS=null}) Source(groups=[#tmp_pr_retrieve_labres], props={ATOMIC_REQUEST=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1, VIRTUAL_COMMAND=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1, OUTPUT_COLS=null}) Project(groups=[f], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue], OUTPUT_COLS=null}) Select(groups=[f], props={SELECT_CRITERIA=f.rang = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[f], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1, SYMBOL_MAP={f.rang=ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC), f.variableid=v.variableid, f.SampleTime=v.SampleTime, f.EnterTime=v.EnterTime, f.varvalue=v.varvalue, f.StringValue=v.StringValue}, OUTPUT_COLS=null}) Project(groups=[v], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=null}) Select(groups=[v], props={SELECT_CRITERIA=v.rang = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[v], props={NESTED_COMMAND=SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v.rang=ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC), v.variableid=lcv.variableid_nieuw, v.SampleTime=lcv.SampleTime, v.EnterTime=lcv.EnterTime, v.varvalue=lcv.varvalue, v.StringValue=lcv.StringValue}, OUTPUT_COLS=null}) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=null}) Join(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm, izisprod.prod_U_PV_LabCorrectValues AS lcv], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID], OUTPUT_COLS=null, IS_COPIED=true}) Join(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[vm.variableid = lm.Labogroep], OUTPUT_COLS=null, IS_COPIED=true}) Access(groups=[wodandb.wodan_varmapping AS vm], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=null}) Select(groups=[wodandb.wodan_varmapping AS vm], props={SELECT_CRITERIA=(vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[wodandb.wodan_varmapping AS vm], props={OUTPUT_COLS=null}) Access(groups=[izisprod.prod_U_P_LabMapping AS lm], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=null}) Source(groups=[izisprod.prod_U_P_LabMapping AS lm], props={OUTPUT_COLS=null}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 8) = 8, OUTPUT_COLS=null, IS_COPIED=true}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 2) <> 2, OUTPUT_COLS=null, IS_COPIED=true}) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=null}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={OUTPUT_COLS=null}) ============================================================================ EXECUTING PlanJoins AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f]) Select(groups=[f]) Source(groups=[f]) Project(groups=[v]) Select(groups=[v]) Source(groups=[v]) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=null}) Select(groups=[wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={SELECT_CRITERIA=vm.variableid = lm.Labogroep, EST_SELECTIVITY=0.025310518}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, izisprod.prod_U_P_LabMapping AS lm], props={SELECT_CRITERIA=lcv.variableid_oud = lm.VariableID, EST_SELECTIVITY=0.26699653}) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP}) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 8) = 8, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 2) <> 2, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}}) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=null, EST_CARDINALITY=509.80392, EST_COL_STATS={lcv.ActorID=[1.0, 254.90198, -1.0], lcv.ClassificationID=[1.0, 254.90198, -1.0], lcv.EnterTime=[1.0, 254.90198, -1.0], lcv.ExamType=[1.0, 254.90198, -1.0], ...}}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=509.80392, EST_COL_STATS={lcv.ActorID=[1.0, 254.90198, -1.0], lcv.ClassificationID=[1.0, 254.90198, -1.0], lcv.EnterTime=[1.0, 254.90198, -1.0], lcv.ExamType=[1.0, 254.90198, -1.0], ...}}) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={OUTPUT_COLS=null, EST_COL_STATS={lcv.ActorID=[510.0, 130000.0, -1.0], lcv.ClassificationID=[510.0, 130000.0, -1.0], lcv.EnterTime=[510.0, 130000.0, -1.0], lcv.ExamType=[510.0, 130000.0, -1.0], ...}, EST_CARDINALITY=260000.0}) Access(groups=[wodandb.wodan_varmapping AS vm], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=null, EST_CARDINALITY=3.0, EST_COL_STATS={vm.variableid=[3.0, 3.0, 1.0], vm.tablename=[1.0, 1.5, -1.0], vm.resultgroup=[1.0, 1.5, -1.0], vm.primaryvar=[1.0, 1.0, -1.0], ...}}) Select(groups=[wodandb.wodan_varmapping AS vm], props={SELECT_CRITERIA=(vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=3.0, EST_COL_STATS={vm.variableid=[3.0, 3.0, 1.0], vm.tablename=[1.0, 1.5, -1.0], vm.resultgroup=[1.0, 1.5, -1.0], vm.primaryvar=[1.0, 1.0, -1.0], ...}}) Source(groups=[wodandb.wodan_varmapping AS vm], props={OUTPUT_COLS=null, EST_COL_STATS={vm.variableid=[25.0, 25.0, 0.0], vm.tablename=[5.0, 12.5, -1.0], vm.resultgroup=[5.0, 12.5, -1.0], vm.primaryvar=[2.0, 2.0, -1.0], ...}, EST_CARDINALITY=25.0}) Access(groups=[izisprod.prod_U_P_LabMapping AS lm], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=null, EST_CARDINALITY=561.0, EST_COL_STATS={lm.Labogroep=[24.0, 280.5, -1.0], lm.Abbreviation=[24.0, 280.5, -1.0], lm.Name=[24.0, 280.5, -1.0], lm.VariableID=[24.0, 280.5, -1.0], ...}}) Source(groups=[izisprod.prod_U_P_LabMapping AS lm], props={OUTPUT_COLS=null, EST_COL_STATS={lm.Labogroep=[24.0, 280.5, -1.0], lm.Abbreviation=[24.0, 280.5, -1.0], lm.Name=[24.0, 280.5, -1.0], lm.VariableID=[24.0, 280.5, -1.0], ...}, EST_CARDINALITY=561.0}) ============================================================================ EXECUTING PushSelectCriteria AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f]) Select(groups=[f], props={SELECT_CRITERIA=f.rang = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[f]) Project(groups=[v]) Select(groups=[v], props={SELECT_CRITERIA=v.rang = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[v]) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=null}) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID, vm.variableid = lm.Labogroep]}) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm]) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 8) = 8, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 2) <> 2, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}}) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=509.80392, EST_COL_STATS={lcv.ActorID=[1.0, 254.90198, -1.0], lcv.ClassificationID=[1.0, 254.90198, -1.0], lcv.EnterTime=[1.0, 254.90198, -1.0], lcv.ExamType=[1.0, 254.90198, -1.0], ...}}) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Access(groups=[wodandb.wodan_varmapping AS vm]) Select(groups=[wodandb.wodan_varmapping AS vm], props={SELECT_CRITERIA=(vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=3.0, EST_COL_STATS={vm.variableid=[3.0, 3.0, 1.0], vm.tablename=[1.0, 1.5, -1.0], vm.resultgroup=[1.0, 1.5, -1.0], vm.primaryvar=[1.0, 1.0, -1.0], ...}}) Source(groups=[wodandb.wodan_varmapping AS vm]) Access(groups=[izisprod.prod_U_P_LabMapping AS lm]) Source(groups=[izisprod.prod_U_P_LabMapping AS lm]) ============================================================================ EXECUTING RaiseAccess LOW [Relational Planner] bitand function not supported by source izisprod - bitand(convert(lcv.Status, integer), 2) was not pushed AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f]) Select(groups=[f]) Source(groups=[f]) Project(groups=[v]) Select(groups=[v]) Source(groups=[v]) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID, vm.variableid = lm.Labogroep]}) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 8) = 8, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 2) <> 2, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}}) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=null, EST_CARDINALITY=509.80392, EST_COL_STATS={lcv.ActorID=[1.0, 254.90198, -1.0], lcv.ClassificationID=[1.0, 254.90198, -1.0], lcv.EnterTime=[1.0, 254.90198, -1.0], lcv.ExamType=[1.0, 254.90198, -1.0], ...}}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Access(groups=[wodandb.wodan_varmapping AS vm], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=null, EST_CARDINALITY=3.0, EST_COL_STATS={vm.variableid=[3.0, 3.0, 1.0], vm.tablename=[1.0, 1.5, -1.0], vm.resultgroup=[1.0, 1.5, -1.0], vm.primaryvar=[1.0, 1.0, -1.0], ...}}) Select(groups=[wodandb.wodan_varmapping AS vm]) Source(groups=[wodandb.wodan_varmapping AS vm]) Access(groups=[izisprod.prod_U_P_LabMapping AS lm], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=null, EST_CARDINALITY=561.0, EST_COL_STATS={lm.Labogroep=[24.0, 280.5, -1.0], lm.Abbreviation=[24.0, 280.5, -1.0], lm.Name=[24.0, 280.5, -1.0], lm.VariableID=[24.0, 280.5, -1.0], ...}}) Source(groups=[izisprod.prod_U_P_LabMapping AS lm]) ============================================================================ EXECUTING PlanOuterJoins AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f]) Select(groups=[f]) Source(groups=[f]) Project(groups=[v]) Select(groups=[v]) Source(groups=[v]) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID, vm.variableid = lm.Labogroep]}) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Access(groups=[wodandb.wodan_varmapping AS vm]) Select(groups=[wodandb.wodan_varmapping AS vm]) Source(groups=[wodandb.wodan_varmapping AS vm]) Access(groups=[izisprod.prod_U_P_LabMapping AS lm]) Source(groups=[izisprod.prod_U_P_LabMapping AS lm]) ============================================================================ EXECUTING ChooseJoinStrategy AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f]) Select(groups=[f]) Source(groups=[f]) Project(groups=[v]) Select(groups=[v]) Source(groups=[v]) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=MERGE, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID, vm.variableid = lm.Labogroep], LEFT_EXPRESSIONS=[lcv.variableid_oud, vm.variableid], RIGHT_EXPRESSIONS=[lm.VariableID, lm.Labogroep], NON_EQUI_JOIN_CRITERIA=[]}) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Access(groups=[wodandb.wodan_varmapping AS vm]) Select(groups=[wodandb.wodan_varmapping AS vm]) Source(groups=[wodandb.wodan_varmapping AS vm]) Access(groups=[izisprod.prod_U_P_LabMapping AS lm]) Source(groups=[izisprod.prod_U_P_LabMapping AS lm]) ============================================================================ EXECUTING ChooseDependent LOW [Relational Planner] parent join is CROSS - Rejecting dependent join Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=null, EST_CARDINALITY=509.80392, EST_COL_STATS={lcv.ActorID=[1.0, 254.90198, -1.0], lcv.ClassificationID=[1.0, 254.90198, -1.0], lcv.EnterTime=[1.0, 254.90198, -1.0], lcv.ExamType=[1.0, 254.90198, -1.0], ...}} LOW [Relational Planner] parent join is CROSS - Rejecting dependent join Access(groups=[wodandb.wodan_varmapping AS vm], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=null, EST_CARDINALITY=3.0, EST_COL_STATS={vm.variableid=[3.0, 3.0, 1.0], vm.tablename=[1.0, 1.5, -1.0], vm.resultgroup=[1.0, 1.5, -1.0], vm.primaryvar=[1.0, 1.0, -1.0], ...}} AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f]) Select(groups=[f]) Source(groups=[f]) Project(groups=[v]) Select(groups=[v]) Source(groups=[v]) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=MERGE, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID, vm.variableid = lm.Labogroep], LEFT_EXPRESSIONS=[lcv.variableid_oud, vm.variableid], RIGHT_EXPRESSIONS=[lm.VariableID, lm.Labogroep], NON_EQUI_JOIN_CRITERIA=[], EST_CARDINALITY=null, DEPENDENT_VALUE_SOURCE=$dsc/id105}) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP, EST_CARDINALITY=3.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 8) = 8, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 2) <> 2, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}}) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=null, EST_CARDINALITY=509.80392, EST_COL_STATS={lcv.ActorID=[1.0, 254.90198, -1.0], lcv.ClassificationID=[1.0, 254.90198, -1.0], lcv.EnterTime=[1.0, 254.90198, -1.0], lcv.ExamType=[1.0, 254.90198, -1.0], ...}}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=509.80392, EST_COL_STATS={lcv.ActorID=[1.0, 254.90198, -1.0], lcv.ClassificationID=[1.0, 254.90198, -1.0], lcv.EnterTime=[1.0, 254.90198, -1.0], lcv.ExamType=[1.0, 254.90198, -1.0], ...}}) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={OUTPUT_COLS=null, EST_COL_STATS={lcv.ActorID=[510.0, 130000.0, -1.0], lcv.ClassificationID=[510.0, 130000.0, -1.0], lcv.EnterTime=[510.0, 130000.0, -1.0], lcv.ExamType=[510.0, 130000.0, -1.0], ...}, EST_CARDINALITY=260000.0}) Access(groups=[wodandb.wodan_varmapping AS vm], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=null, EST_CARDINALITY=3.0, EST_COL_STATS={vm.variableid=[3.0, 3.0, 1.0], vm.tablename=[1.0, 1.5, -1.0], vm.resultgroup=[1.0, 1.5, -1.0], vm.primaryvar=[1.0, 1.0, -1.0], ...}}) Select(groups=[wodandb.wodan_varmapping AS vm], props={SELECT_CRITERIA=(vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=3.0, EST_COL_STATS={vm.variableid=[3.0, 3.0, 1.0], vm.tablename=[1.0, 1.5, -1.0], vm.resultgroup=[1.0, 1.5, -1.0], vm.primaryvar=[1.0, 1.0, -1.0], ...}}) Source(groups=[wodandb.wodan_varmapping AS vm], props={OUTPUT_COLS=null, EST_COL_STATS={vm.variableid=[25.0, 25.0, 0.0], vm.tablename=[5.0, 12.5, -1.0], vm.resultgroup=[5.0, 12.5, -1.0], vm.primaryvar=[2.0, 2.0, -1.0], ...}, EST_CARDINALITY=25.0}) Select(groups=[izisprod.prod_U_P_LabMapping AS lm], props={SELECT_CRITERIA=(lm.VariableID, lm.Labogroep) IN (), IS_DEPENDENT_SET=true}) Access(groups=[izisprod.prod_U_P_LabMapping AS lm], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=null, EST_CARDINALITY=561.0, EST_COL_STATS={lm.Labogroep=[24.0, 280.5, -1.0], lm.Abbreviation=[24.0, 280.5, -1.0], lm.Name=[24.0, 280.5, -1.0], lm.VariableID=[24.0, 280.5, -1.0], ...}}) Source(groups=[izisprod.prod_U_P_LabMapping AS lm], props={OUTPUT_COLS=null, EST_COL_STATS={lm.Labogroep=[24.0, 280.5, -1.0], lm.Abbreviation=[24.0, 280.5, -1.0], lm.Name=[24.0, 280.5, -1.0], lm.VariableID=[24.0, 280.5, -1.0], ...}, EST_CARDINALITY=561.0}) ============================================================================ EXECUTING PushSelectCriteria AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f]) Select(groups=[f], props={SELECT_CRITERIA=f.rang = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[f]) Project(groups=[v]) Select(groups=[v], props={SELECT_CRITERIA=v.rang = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[v]) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=MERGE, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID, vm.variableid = lm.Labogroep], LEFT_EXPRESSIONS=[lcv.variableid_oud, vm.variableid], RIGHT_EXPRESSIONS=[lm.VariableID, lm.Labogroep], NON_EQUI_JOIN_CRITERIA=[], EST_CARDINALITY=null, DEPENDENT_VALUE_SOURCE=$dsc/id105}) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm]) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 8) = 8, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 2) <> 2, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}}) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=509.80392, EST_COL_STATS={lcv.ActorID=[1.0, 254.90198, -1.0], lcv.ClassificationID=[1.0, 254.90198, -1.0], lcv.EnterTime=[1.0, 254.90198, -1.0], lcv.ExamType=[1.0, 254.90198, -1.0], ...}}) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Access(groups=[wodandb.wodan_varmapping AS vm]) Select(groups=[wodandb.wodan_varmapping AS vm], props={SELECT_CRITERIA=(vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=3.0, EST_COL_STATS={vm.variableid=[3.0, 3.0, 1.0], vm.tablename=[1.0, 1.5, -1.0], vm.resultgroup=[1.0, 1.5, -1.0], vm.primaryvar=[1.0, 1.0, -1.0], ...}}) Source(groups=[wodandb.wodan_varmapping AS vm]) Access(groups=[izisprod.prod_U_P_LabMapping AS lm], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=null, EST_CARDINALITY=561.0, EST_COL_STATS={lm.Labogroep=[24.0, 280.5, -1.0], lm.Abbreviation=[24.0, 280.5, -1.0], lm.Name=[24.0, 280.5, -1.0], lm.VariableID=[24.0, 280.5, -1.0], ...}, IS_DEPENDENT_SET=true}) Select(groups=[izisprod.prod_U_P_LabMapping AS lm], props={SELECT_CRITERIA=(lm.VariableID IN ()) AND (lm.Labogroep IN ()), IS_DEPENDENT_SET=true, IS_PUSHED=true}) Source(groups=[izisprod.prod_U_P_LabMapping AS lm], props={OUTPUT_COLS=null, EST_COL_STATS={lm.Labogroep=[24.0, 280.5, -1.0], lm.Abbreviation=[24.0, 280.5, -1.0], lm.Name=[24.0, 280.5, -1.0], lm.VariableID=[24.0, 280.5, -1.0], ...}, EST_CARDINALITY=561.0}) ============================================================================ EXECUTING CleanCriteria AFTER: Project(groups=[], props={PROJECT_COLS=[Count], INTO_GROUP=#tmp_pr_retrieve_labres, OUTPUT_COLS=null}) Source(groups=[#tmp_pr_retrieve_labres], props={ATOMIC_REQUEST=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1, VIRTUAL_COMMAND=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1, OUTPUT_COLS=null}) Project(groups=[f], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue], OUTPUT_COLS=null}) Select(groups=[f], props={SELECT_CRITERIA=f.rang = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[f], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1, SYMBOL_MAP={f.rang=ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC), f.variableid=v.variableid, f.SampleTime=v.SampleTime, f.EnterTime=v.EnterTime, f.varvalue=v.varvalue, f.StringValue=v.StringValue}, OUTPUT_COLS=null}) Project(groups=[v], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=null}) Select(groups=[v], props={SELECT_CRITERIA=v.rang = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[v], props={NESTED_COMMAND=SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v.rang=ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC), v.variableid=lcv.variableid_nieuw, v.SampleTime=lcv.SampleTime, v.EnterTime=lcv.EnterTime, v.varvalue=lcv.varvalue, v.StringValue=lcv.StringValue}, OUTPUT_COLS=null}) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=null}) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=MERGE, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID, vm.variableid = lm.Labogroep], LEFT_EXPRESSIONS=[lcv.variableid_oud, vm.variableid], RIGHT_EXPRESSIONS=[lm.VariableID, lm.Labogroep], NON_EQUI_JOIN_CRITERIA=[], EST_CARDINALITY=null, DEPENDENT_VALUE_SOURCE=$dsc/id105, OUTPUT_COLS=null}) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP, EST_CARDINALITY=3.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}, OUTPUT_COLS=null}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 8) = 8, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 2) <> 2, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}}) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=null, EST_CARDINALITY=509.80392, EST_COL_STATS={lcv.ActorID=[1.0, 254.90198, -1.0], lcv.ClassificationID=[1.0, 254.90198, -1.0], lcv.EnterTime=[1.0, 254.90198, -1.0], lcv.ExamType=[1.0, 254.90198, -1.0], ...}}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=509.80392, EST_COL_STATS={lcv.ActorID=[1.0, 254.90198, -1.0], lcv.ClassificationID=[1.0, 254.90198, -1.0], lcv.EnterTime=[1.0, 254.90198, -1.0], lcv.ExamType=[1.0, 254.90198, -1.0], ...}}) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={OUTPUT_COLS=null, EST_COL_STATS={lcv.ActorID=[510.0, 130000.0, -1.0], lcv.ClassificationID=[510.0, 130000.0, -1.0], lcv.EnterTime=[510.0, 130000.0, -1.0], lcv.ExamType=[510.0, 130000.0, -1.0], ...}, EST_CARDINALITY=260000.0}) Access(groups=[wodandb.wodan_varmapping AS vm], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=null, EST_CARDINALITY=3.0, EST_COL_STATS={vm.variableid=[3.0, 3.0, 1.0], vm.tablename=[1.0, 1.5, -1.0], vm.resultgroup=[1.0, 1.5, -1.0], vm.primaryvar=[1.0, 1.0, -1.0], ...}}) Select(groups=[wodandb.wodan_varmapping AS vm], props={SELECT_CRITERIA=(vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=3.0, EST_COL_STATS={vm.variableid=[3.0, 3.0, 1.0], vm.tablename=[1.0, 1.5, -1.0], vm.resultgroup=[1.0, 1.5, -1.0], vm.primaryvar=[1.0, 1.0, -1.0], ...}}) Source(groups=[wodandb.wodan_varmapping AS vm], props={OUTPUT_COLS=null, EST_COL_STATS={vm.variableid=[25.0, 25.0, 0.0], vm.tablename=[5.0, 12.5, -1.0], vm.resultgroup=[5.0, 12.5, -1.0], vm.primaryvar=[2.0, 2.0, -1.0], ...}, EST_CARDINALITY=25.0}) Access(groups=[izisprod.prod_U_P_LabMapping AS lm], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=null, EST_CARDINALITY=561.0, EST_COL_STATS={lm.Labogroep=[24.0, 280.5, -1.0], lm.Abbreviation=[24.0, 280.5, -1.0], lm.Name=[24.0, 280.5, -1.0], lm.VariableID=[24.0, 280.5, -1.0], ...}, IS_DEPENDENT_SET=true}) Select(groups=[izisprod.prod_U_P_LabMapping AS lm], props={SELECT_CRITERIA=(lm.VariableID IN ()) AND (lm.Labogroep IN ()), IS_DEPENDENT_SET=true, IS_PUSHED=true, OUTPUT_COLS=null}) Source(groups=[izisprod.prod_U_P_LabMapping AS lm], props={OUTPUT_COLS=null, EST_COL_STATS={lm.Labogroep=[24.0, 280.5, -1.0], lm.Abbreviation=[24.0, 280.5, -1.0], lm.Name=[24.0, 280.5, -1.0], lm.VariableID=[24.0, 280.5, -1.0], ...}, EST_CARDINALITY=561.0}) ============================================================================ EXECUTING AssignOutputElements AFTER: Project(groups=[], props={PROJECT_COLS=[Count], INTO_GROUP=#tmp_pr_retrieve_labres, OUTPUT_COLS=[Count]}) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue], OUTPUT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue]}) Select(groups=[f], props={SELECT_CRITERIA=f.rang = 1, OUTPUT_COLS=[f.variableid, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue], IS_COPIED=true}) Source(groups=[f], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1, SYMBOL_MAP={f.rang=ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC), f.variableid=v.variableid, f.SampleTime=v.SampleTime, f.EnterTime=v.EnterTime, f.varvalue=v.varvalue, f.StringValue=v.StringValue}, OUTPUT_COLS=[f.rang, f.variableid, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue]}) Project(groups=[v], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue]}) Select(groups=[v], props={SELECT_CRITERIA=v.rang = 1, OUTPUT_COLS=[v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue], IS_COPIED=true}) Source(groups=[v], props={NESTED_COMMAND=SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v.rang=ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC), v.variableid=lcv.variableid_nieuw, v.SampleTime=lcv.SampleTime, v.EnterTime=lcv.EnterTime, v.varvalue=lcv.varvalue, v.StringValue=lcv.StringValue}, OUTPUT_COLS=[v.rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue]}) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=MERGE, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID, vm.variableid = lm.Labogroep], LEFT_EXPRESSIONS=[lcv.variableid_oud, vm.variableid], RIGHT_EXPRESSIONS=[lm.VariableID, lm.Labogroep], NON_EQUI_JOIN_CRITERIA=[], EST_CARDINALITY=null, DEPENDENT_VALUE_SOURCE=$dsc/id105, OUTPUT_COLS=[lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP, EST_CARDINALITY=3.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}, OUTPUT_COLS=[lcv.variableid_oud, vm.variableid, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 8) = 8, OUTPUT_COLS=[lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 2) <> 2, OUTPUT_COLS=[lcv.Status, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}}) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=[lcv.Status, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], EST_CARDINALITY=509.80392, EST_COL_STATS={lcv.ActorID=[1.0, 254.90198, -1.0], lcv.ClassificationID=[1.0, 254.90198, -1.0], lcv.EnterTime=[1.0, 254.90198, -1.0], lcv.ExamType=[1.0, 254.90198, -1.0], ...}}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in, OUTPUT_COLS=[lcv.Status, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], IS_COPIED=true, EST_CARDINALITY=509.80392, EST_COL_STATS={lcv.ActorID=[1.0, 254.90198, -1.0], lcv.ClassificationID=[1.0, 254.90198, -1.0], lcv.EnterTime=[1.0, 254.90198, -1.0], lcv.ExamType=[1.0, 254.90198, -1.0], ...}}) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={OUTPUT_COLS=[lcv.PatientID, lcv.Status, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], EST_COL_STATS={lcv.ActorID=[510.0, 130000.0, -1.0], lcv.ClassificationID=[510.0, 130000.0, -1.0], lcv.EnterTime=[510.0, 130000.0, -1.0], lcv.ExamType=[510.0, 130000.0, -1.0], ...}, EST_CARDINALITY=260000.0}) Access(groups=[wodandb.wodan_varmapping AS vm], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=[vm.variableid], EST_CARDINALITY=3.0, EST_COL_STATS={vm.variableid=[3.0, 3.0, 1.0], vm.tablename=[1.0, 1.5, -1.0], vm.resultgroup=[1.0, 1.5, -1.0], vm.primaryvar=[1.0, 1.0, -1.0], ...}}) Select(groups=[wodandb.wodan_varmapping AS vm], props={SELECT_CRITERIA=(vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), OUTPUT_COLS=[vm.variableid], IS_COPIED=true, EST_CARDINALITY=3.0, EST_COL_STATS={vm.variableid=[3.0, 3.0, 1.0], vm.tablename=[1.0, 1.5, -1.0], vm.resultgroup=[1.0, 1.5, -1.0], vm.primaryvar=[1.0, 1.0, -1.0], ...}}) Source(groups=[wodandb.wodan_varmapping AS vm], props={OUTPUT_COLS=[vm.tablename, vm.resultgroup, vm.variableid], EST_COL_STATS={vm.variableid=[25.0, 25.0, 0.0], vm.tablename=[5.0, 12.5, -1.0], vm.resultgroup=[5.0, 12.5, -1.0], vm.primaryvar=[2.0, 2.0, -1.0], ...}, EST_CARDINALITY=25.0}) Access(groups=[izisprod.prod_U_P_LabMapping AS lm], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=[lm.VariableID, lm.Labogroep], EST_CARDINALITY=561.0, EST_COL_STATS={lm.Labogroep=[24.0, 280.5, -1.0], lm.Abbreviation=[24.0, 280.5, -1.0], lm.Name=[24.0, 280.5, -1.0], lm.VariableID=[24.0, 280.5, -1.0], ...}, IS_DEPENDENT_SET=true}) Select(groups=[izisprod.prod_U_P_LabMapping AS lm], props={SELECT_CRITERIA=(lm.VariableID IN ()) AND (lm.Labogroep IN ()), IS_DEPENDENT_SET=true, IS_PUSHED=true, OUTPUT_COLS=[lm.VariableID, lm.Labogroep]}) Source(groups=[izisprod.prod_U_P_LabMapping AS lm], props={OUTPUT_COLS=[lm.VariableID, lm.Labogroep], EST_COL_STATS={lm.Labogroep=[24.0, 280.5, -1.0], lm.Abbreviation=[24.0, 280.5, -1.0], lm.Name=[24.0, 280.5, -1.0], lm.VariableID=[24.0, 280.5, -1.0], ...}, EST_CARDINALITY=561.0}) ============================================================================ EXECUTING CalculateCost AFTER: Project(groups=[], props={PROJECT_COLS=[Count], INTO_GROUP=#tmp_pr_retrieve_labres, OUTPUT_COLS=[Count], EST_CARDINALITY=1.8385565, EST_COL_STATS={Count=[-1.0, -1.0, -1.0]}}) Source(groups=[#tmp_pr_retrieve_labres], props={ATOMIC_REQUEST=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1, VIRTUAL_COMMAND=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1, OUTPUT_COLS=null, EST_CARDINALITY=1.8385565}) Project(groups=[f], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue], OUTPUT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue], EST_CARDINALITY=1.8385565, EST_COL_STATS={izisviews.pr_retrieve_labres.patientid_in=[1.0, 1.0, 1.0], f.variableid=[1.0, 1.0, -1.0], izisviews.pr_retrieve_labres.resultgroup_in=[1.0, 1.0, 1.0], f.SampleTime=[1.0, 1.0, -1.0], ...}}) Select(groups=[f], props={SELECT_CRITERIA=f.rang = 1, OUTPUT_COLS=[f.variableid, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue], IS_COPIED=true, EST_CARDINALITY=1.8385565, EST_COL_STATS={f.variableid=[1.0, 1.0, -1.0], f.SampleTime=[1.0, 1.0, -1.0], f.EnterTime=[1.0, 1.0, -1.0], f.varvalue=[1.0, 1.0, -1.0], ...}}) Source(groups=[f], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1, SYMBOL_MAP={f.rang=ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC), f.variableid=v.variableid, f.SampleTime=v.SampleTime, f.EnterTime=v.EnterTime, f.varvalue=v.varvalue, f.StringValue=v.StringValue}, OUTPUT_COLS=[f.rang, f.variableid, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue], EST_CARDINALITY=4.343175, EST_COL_STATS={f.rang=[2.3622744, 2.3622744, -1.0], f.variableid=[1.0, 1.0, -1.0], f.SampleTime=[1.0, 1.0, -1.0], f.EnterTime=[1.0, 1.0, -1.0], ...}}) Project(groups=[v], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue], EST_CARDINALITY=4.343175, EST_COL_STATS={ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC)=[2.3622744, 2.3622744, -1.0], v.variableid=[1.0, 1.0, -1.0], v.SampleTime=[1.0, 1.0, -1.0], v.EnterTime=[1.0, 1.0, -1.0], ...}}) Select(groups=[v], props={SELECT_CRITERIA=v.rang = 1, OUTPUT_COLS=[v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue], IS_COPIED=true, EST_CARDINALITY=4.343175, EST_COL_STATS={v.variableid=[1.0, 1.0, -1.0], v.SampleTime=[1.0, 1.0, -1.0], v.EnterTime=[1.0, 1.0, -1.0], v.varvalue=[1.0, 1.0, -1.0], ...}}) Source(groups=[v], props={NESTED_COMMAND=SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v.rang=ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC), v.variableid=lcv.variableid_nieuw, v.SampleTime=lcv.SampleTime, v.EnterTime=lcv.EnterTime, v.varvalue=lcv.varvalue, v.StringValue=lcv.StringValue}, OUTPUT_COLS=[v.rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue], EST_CARDINALITY=11.971449, EST_COL_STATS={v.rang=[2.756382, 2.756382, -1.0], v.variableid=[1.0, 1.0, -1.0], v.SampleTime=[1.0, 1.0, -1.0], v.EnterTime=[1.0, 1.0, -1.0], ...}}) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], EST_CARDINALITY=11.971449, EST_COL_STATS={ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC)=[2.756382, 2.756382, -1.0], lcv.variableid_nieuw=[1.0, 1.0, -1.0], lcv.SampleTime=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], ...}}) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=MERGE, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID, vm.variableid = lm.Labogroep], LEFT_EXPRESSIONS=[lcv.variableid_oud, vm.variableid], RIGHT_EXPRESSIONS=[lm.VariableID, lm.Labogroep], NON_EQUI_JOIN_CRITERIA=[], EST_CARDINALITY=11.971449, DEPENDENT_VALUE_SOURCE=$dsc/id105, OUTPUT_COLS=[lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], EST_COL_STATS={lcv.variableid_oud=[1.0, 1.0, -1.0], lcv.ResultID=[1.0, 1.0, -1.0], lcv.ResultNo=[1.0, 1.0, -1.0], lcv.variableid_nieuw=[1.0, 1.0, -1.0], ...}}) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP, EST_CARDINALITY=3.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}, OUTPUT_COLS=[lcv.variableid_oud, vm.variableid, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 8) = 8, OUTPUT_COLS=[lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 2) <> 2, OUTPUT_COLS=[lcv.Status, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}}) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=[lcv.Status, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], EST_CARDINALITY=509.80392, EST_COL_STATS={lcv.ActorID=[1.0, 254.90198, -1.0], lcv.ClassificationID=[1.0, 254.90198, -1.0], lcv.EnterTime=[1.0, 254.90198, -1.0], lcv.ExamType=[1.0, 254.90198, -1.0], ...}}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in, OUTPUT_COLS=[lcv.Status, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], IS_COPIED=true, EST_CARDINALITY=509.80392, EST_COL_STATS={lcv.ActorID=[1.0, 254.90198, -1.0], lcv.ClassificationID=[1.0, 254.90198, -1.0], lcv.EnterTime=[1.0, 254.90198, -1.0], lcv.ExamType=[1.0, 254.90198, -1.0], ...}}) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={OUTPUT_COLS=[lcv.PatientID, lcv.Status, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], EST_COL_STATS={lcv.ActorID=[510.0, 130000.0, -1.0], lcv.ClassificationID=[510.0, 130000.0, -1.0], lcv.EnterTime=[510.0, 130000.0, -1.0], lcv.ExamType=[510.0, 130000.0, -1.0], ...}, EST_CARDINALITY=260000.0}) Access(groups=[wodandb.wodan_varmapping AS vm], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=[vm.variableid], EST_CARDINALITY=3.0, EST_COL_STATS={vm.variableid=[3.0, 3.0, 1.0], vm.tablename=[1.0, 1.5, -1.0], vm.resultgroup=[1.0, 1.5, -1.0], vm.primaryvar=[1.0, 1.0, -1.0], ...}}) Select(groups=[wodandb.wodan_varmapping AS vm], props={SELECT_CRITERIA=(vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), OUTPUT_COLS=[vm.variableid], IS_COPIED=true, EST_CARDINALITY=3.0, EST_COL_STATS={vm.variableid=[3.0, 3.0, 1.0], vm.tablename=[1.0, 1.5, -1.0], vm.resultgroup=[1.0, 1.5, -1.0], vm.primaryvar=[1.0, 1.0, -1.0], ...}}) Source(groups=[wodandb.wodan_varmapping AS vm], props={OUTPUT_COLS=[vm.tablename, vm.resultgroup, vm.variableid], EST_COL_STATS={vm.variableid=[25.0, 25.0, 0.0], vm.tablename=[5.0, 12.5, -1.0], vm.resultgroup=[5.0, 12.5, -1.0], vm.primaryvar=[2.0, 2.0, -1.0], ...}, EST_CARDINALITY=25.0}) Access(groups=[izisprod.prod_U_P_LabMapping AS lm], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=[lm.VariableID, lm.Labogroep], EST_CARDINALITY=39.445312, EST_COL_STATS={lm.VariableID=[1.6875, 19.722656, -1.0], lm.Labogroep=[1.6875, 19.722656, -1.0]}, IS_DEPENDENT_SET=true}) Select(groups=[izisprod.prod_U_P_LabMapping AS lm], props={SELECT_CRITERIA=(lm.VariableID IN ()) AND (lm.Labogroep IN ()), IS_DEPENDENT_SET=true, IS_PUSHED=true, OUTPUT_COLS=[lm.VariableID, lm.Labogroep], EST_CARDINALITY=39.445312, EST_COL_STATS={lm.VariableID=[1.6875, 19.722656, -1.0], lm.Labogroep=[1.6875, 19.722656, -1.0]}}) Source(groups=[izisprod.prod_U_P_LabMapping AS lm], props={OUTPUT_COLS=[lm.VariableID, lm.Labogroep], EST_COL_STATS={lm.Labogroep=[24.0, 280.5, -1.0], lm.Abbreviation=[24.0, 280.5, -1.0], lm.Name=[24.0, 280.5, -1.0], lm.VariableID=[24.0, 280.5, -1.0], ...}, EST_CARDINALITY=561.0}) ============================================================================ EXECUTING ImplementJoinStrategy AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f]) Select(groups=[f]) Source(groups=[f]) Project(groups=[v]) Select(groups=[v]) Source(groups=[v]) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=ENHANCED_SORT, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID, vm.variableid = lm.Labogroep], LEFT_EXPRESSIONS=[lcv.variableid_oud, vm.variableid], RIGHT_EXPRESSIONS=[lm.VariableID, lm.Labogroep], NON_EQUI_JOIN_CRITERIA=[], EST_CARDINALITY=11.971449, DEPENDENT_VALUE_SOURCE=$dsc/id105, OUTPUT_COLS=[lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], EST_COL_STATS={lcv.variableid_oud=[1.0, 1.0, -1.0], lcv.ResultID=[1.0, 1.0, -1.0], lcv.ResultNo=[1.0, 1.0, -1.0], lcv.variableid_nieuw=[1.0, 1.0, -1.0], ...}, SORT_LEFT=SORT, SORT_RIGHT=SORT}) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP, EST_CARDINALITY=3.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}, OUTPUT_COLS=[lcv.variableid_oud, vm.variableid, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 8) = 8, OUTPUT_COLS=[lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=bitand(convert(lcv.Status, integer), 2) <> 2, OUTPUT_COLS=[lcv.Status, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}}) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=[lcv.Status, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], EST_CARDINALITY=509.80392, EST_COL_STATS={lcv.ActorID=[1.0, 254.90198, -1.0], lcv.ClassificationID=[1.0, 254.90198, -1.0], lcv.EnterTime=[1.0, 254.90198, -1.0], lcv.ExamType=[1.0, 254.90198, -1.0], ...}}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in, OUTPUT_COLS=[lcv.Status, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], IS_COPIED=true, EST_CARDINALITY=509.80392, EST_COL_STATS={lcv.ActorID=[1.0, 254.90198, -1.0], lcv.ClassificationID=[1.0, 254.90198, -1.0], lcv.EnterTime=[1.0, 254.90198, -1.0], lcv.ExamType=[1.0, 254.90198, -1.0], ...}}) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={OUTPUT_COLS=[lcv.PatientID, lcv.Status, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], EST_COL_STATS={lcv.ActorID=[510.0, 130000.0, -1.0], lcv.ClassificationID=[510.0, 130000.0, -1.0], lcv.EnterTime=[510.0, 130000.0, -1.0], lcv.ExamType=[510.0, 130000.0, -1.0], ...}, EST_CARDINALITY=260000.0}) Access(groups=[wodandb.wodan_varmapping AS vm], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=[vm.variableid], EST_CARDINALITY=3.0, EST_COL_STATS={vm.variableid=[3.0, 3.0, 1.0], vm.tablename=[1.0, 1.5, -1.0], vm.resultgroup=[1.0, 1.5, -1.0], vm.primaryvar=[1.0, 1.0, -1.0], ...}}) Select(groups=[wodandb.wodan_varmapping AS vm], props={SELECT_CRITERIA=(vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), OUTPUT_COLS=[vm.variableid], IS_COPIED=true, EST_CARDINALITY=3.0, EST_COL_STATS={vm.variableid=[3.0, 3.0, 1.0], vm.tablename=[1.0, 1.5, -1.0], vm.resultgroup=[1.0, 1.5, -1.0], vm.primaryvar=[1.0, 1.0, -1.0], ...}}) Source(groups=[wodandb.wodan_varmapping AS vm], props={OUTPUT_COLS=[vm.tablename, vm.resultgroup, vm.variableid], EST_COL_STATS={vm.variableid=[25.0, 25.0, 0.0], vm.tablename=[5.0, 12.5, -1.0], vm.resultgroup=[5.0, 12.5, -1.0], vm.primaryvar=[2.0, 2.0, -1.0], ...}, EST_CARDINALITY=25.0}) Access(groups=[izisprod.prod_U_P_LabMapping AS lm], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=[lm.VariableID, lm.Labogroep], EST_CARDINALITY=39.445312, EST_COL_STATS={lm.VariableID=[1.6875, 19.722656, -1.0], lm.Labogroep=[1.6875, 19.722656, -1.0]}, IS_DEPENDENT_SET=true}) Select(groups=[izisprod.prod_U_P_LabMapping AS lm], props={SELECT_CRITERIA=(lm.VariableID IN ()) AND (lm.Labogroep IN ()), IS_DEPENDENT_SET=true, IS_PUSHED=true, OUTPUT_COLS=[lm.VariableID, lm.Labogroep], EST_CARDINALITY=39.445312, EST_COL_STATS={lm.VariableID=[1.6875, 19.722656, -1.0], lm.Labogroep=[1.6875, 19.722656, -1.0]}}) Source(groups=[izisprod.prod_U_P_LabMapping AS lm], props={OUTPUT_COLS=[lm.VariableID, lm.Labogroep], EST_COL_STATS={lm.Labogroep=[24.0, 280.5, -1.0], lm.Abbreviation=[24.0, 280.5, -1.0], lm.Name=[24.0, 280.5, -1.0], lm.VariableID=[24.0, 280.5, -1.0], ...}, EST_CARDINALITY=561.0}) ============================================================================ EXECUTING MergeCriteria AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f]) Select(groups=[f], props={SELECT_CRITERIA=f.rang = 1, OUTPUT_COLS=[f.variableid, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue], IS_COPIED=true, EST_CARDINALITY=1.8385565, EST_COL_STATS={f.variableid=[1.0, 1.0, -1.0], f.SampleTime=[1.0, 1.0, -1.0], f.EnterTime=[1.0, 1.0, -1.0], f.varvalue=[1.0, 1.0, -1.0], ...}}) Source(groups=[f], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1, SYMBOL_MAP={f.rang=ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC), f.variableid=v.variableid, f.SampleTime=v.SampleTime, f.EnterTime=v.EnterTime, f.varvalue=v.varvalue, f.StringValue=v.StringValue}, OUTPUT_COLS=[f.rang, f.variableid, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue], EST_CARDINALITY=4.343175, EST_COL_STATS={f.rang=[2.3622744, 2.3622744, -1.0], f.variableid=[1.0, 1.0, -1.0], f.SampleTime=[1.0, 1.0, -1.0], f.EnterTime=[1.0, 1.0, -1.0], ...}}) Project(groups=[v], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue], EST_CARDINALITY=4.343175, EST_COL_STATS={ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC)=[2.3622744, 2.3622744, -1.0], v.variableid=[1.0, 1.0, -1.0], v.SampleTime=[1.0, 1.0, -1.0], v.EnterTime=[1.0, 1.0, -1.0], ...}}) Select(groups=[v], props={SELECT_CRITERIA=v.rang = 1, OUTPUT_COLS=[v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue], IS_COPIED=true, EST_CARDINALITY=4.343175, EST_COL_STATS={v.variableid=[1.0, 1.0, -1.0], v.SampleTime=[1.0, 1.0, -1.0], v.EnterTime=[1.0, 1.0, -1.0], v.varvalue=[1.0, 1.0, -1.0], ...}}) Source(groups=[v], props={NESTED_COMMAND=SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v.rang=ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC), v.variableid=lcv.variableid_nieuw, v.SampleTime=lcv.SampleTime, v.EnterTime=lcv.EnterTime, v.varvalue=lcv.varvalue, v.StringValue=lcv.StringValue}, OUTPUT_COLS=[v.rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue], EST_CARDINALITY=11.971449, EST_COL_STATS={v.rang=[2.756382, 2.756382, -1.0], v.variableid=[1.0, 1.0, -1.0], v.SampleTime=[1.0, 1.0, -1.0], v.EnterTime=[1.0, 1.0, -1.0], ...}}) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], EST_CARDINALITY=11.971449, EST_COL_STATS={ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC)=[2.756382, 2.756382, -1.0], lcv.variableid_nieuw=[1.0, 1.0, -1.0], lcv.SampleTime=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], ...}}) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=ENHANCED_SORT, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID, vm.variableid = lm.Labogroep], LEFT_EXPRESSIONS=[lcv.variableid_oud, vm.variableid], RIGHT_EXPRESSIONS=[lm.VariableID, lm.Labogroep], NON_EQUI_JOIN_CRITERIA=[], EST_CARDINALITY=11.971449, DEPENDENT_VALUE_SOURCE=$dsc/id105, OUTPUT_COLS=[lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], EST_COL_STATS={lcv.variableid_oud=[1.0, 1.0, -1.0], lcv.ResultID=[1.0, 1.0, -1.0], lcv.ResultNo=[1.0, 1.0, -1.0], lcv.variableid_nieuw=[1.0, 1.0, -1.0], ...}, SORT_LEFT=SORT, SORT_RIGHT=SORT}) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP, EST_CARDINALITY=3.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}, OUTPUT_COLS=[lcv.variableid_oud, vm.variableid, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=(bitand(convert(lcv.Status, integer), 2) <> 2) AND (bitand(convert(lcv.Status, integer), 8) = 8), OUTPUT_COLS=[lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}}) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=[lcv.Status, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], EST_CARDINALITY=509.80392, EST_COL_STATS={lcv.ActorID=[1.0, 254.90198, -1.0], lcv.ClassificationID=[1.0, 254.90198, -1.0], lcv.EnterTime=[1.0, 254.90198, -1.0], lcv.ExamType=[1.0, 254.90198, -1.0], ...}}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SELECT_CRITERIA=lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in, OUTPUT_COLS=[lcv.Status, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], IS_COPIED=true, EST_CARDINALITY=509.80392, EST_COL_STATS={lcv.ActorID=[1.0, 254.90198, -1.0], lcv.ClassificationID=[1.0, 254.90198, -1.0], lcv.EnterTime=[1.0, 254.90198, -1.0], lcv.ExamType=[1.0, 254.90198, -1.0], ...}}) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={OUTPUT_COLS=[lcv.PatientID, lcv.Status, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], EST_COL_STATS={lcv.ActorID=[510.0, 130000.0, -1.0], lcv.ClassificationID=[510.0, 130000.0, -1.0], lcv.EnterTime=[510.0, 130000.0, -1.0], lcv.ExamType=[510.0, 130000.0, -1.0], ...}, EST_CARDINALITY=260000.0}) Access(groups=[wodandb.wodan_varmapping AS vm], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=[vm.variableid], EST_CARDINALITY=3.0, EST_COL_STATS={vm.variableid=[3.0, 3.0, 1.0], vm.tablename=[1.0, 1.5, -1.0], vm.resultgroup=[1.0, 1.5, -1.0], vm.primaryvar=[1.0, 1.0, -1.0], ...}}) Select(groups=[wodandb.wodan_varmapping AS vm], props={SELECT_CRITERIA=(vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), OUTPUT_COLS=[vm.variableid], IS_COPIED=true, EST_CARDINALITY=3.0, EST_COL_STATS={vm.variableid=[3.0, 3.0, 1.0], vm.tablename=[1.0, 1.5, -1.0], vm.resultgroup=[1.0, 1.5, -1.0], vm.primaryvar=[1.0, 1.0, -1.0], ...}}) Source(groups=[wodandb.wodan_varmapping AS vm], props={OUTPUT_COLS=[vm.tablename, vm.resultgroup, vm.variableid], EST_COL_STATS={vm.variableid=[25.0, 25.0, 0.0], vm.tablename=[5.0, 12.5, -1.0], vm.resultgroup=[5.0, 12.5, -1.0], vm.primaryvar=[2.0, 2.0, -1.0], ...}, EST_CARDINALITY=25.0}) Access(groups=[izisprod.prod_U_P_LabMapping AS lm], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=[lm.VariableID, lm.Labogroep], EST_CARDINALITY=39.445312, EST_COL_STATS={lm.VariableID=[1.6875, 19.722656, -1.0], lm.Labogroep=[1.6875, 19.722656, -1.0]}, IS_DEPENDENT_SET=true}) Select(groups=[izisprod.prod_U_P_LabMapping AS lm], props={SELECT_CRITERIA=(lm.VariableID IN ()) AND (lm.Labogroep IN ()), IS_DEPENDENT_SET=true, IS_PUSHED=true, OUTPUT_COLS=[lm.VariableID, lm.Labogroep], EST_CARDINALITY=39.445312, EST_COL_STATS={lm.VariableID=[1.6875, 19.722656, -1.0], lm.Labogroep=[1.6875, 19.722656, -1.0]}}) Source(groups=[izisprod.prod_U_P_LabMapping AS lm], props={OUTPUT_COLS=[lm.VariableID, lm.Labogroep], EST_COL_STATS={lm.Labogroep=[24.0, 280.5, -1.0], lm.Abbreviation=[24.0, 280.5, -1.0], lm.Name=[24.0, 280.5, -1.0], lm.VariableID=[24.0, 280.5, -1.0], ...}, EST_CARDINALITY=561.0}) ============================================================================ EXECUTING PlanSorts AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f]) Select(groups=[f]) Source(groups=[f]) Project(groups=[v]) Select(groups=[v]) Source(groups=[v]) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=ENHANCED_SORT, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID, vm.variableid = lm.Labogroep], LEFT_EXPRESSIONS=[lcv.variableid_oud, vm.variableid], RIGHT_EXPRESSIONS=[lm.VariableID, lm.Labogroep], NON_EQUI_JOIN_CRITERIA=[], EST_CARDINALITY=11.971449, DEPENDENT_VALUE_SOURCE=$dsc/id105, OUTPUT_COLS=[lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], EST_COL_STATS={lcv.variableid_oud=[1.0, 1.0, -1.0], lcv.ResultID=[1.0, 1.0, -1.0], lcv.ResultNo=[1.0, 1.0, -1.0], lcv.variableid_nieuw=[1.0, 1.0, -1.0], ...}, SORT_LEFT=SORT, SORT_RIGHT=SORT}) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP, EST_CARDINALITY=3.0, EST_COL_STATS={lcv.ActorID=[1.0, 1.0, -1.0], lcv.ClassificationID=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], lcv.ExamType=[1.0, 1.0, -1.0], ...}, OUTPUT_COLS=[lcv.variableid_oud, vm.variableid, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue]}) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Source(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Access(groups=[wodandb.wodan_varmapping AS vm]) Select(groups=[wodandb.wodan_varmapping AS vm]) Source(groups=[wodandb.wodan_varmapping AS vm]) Access(groups=[izisprod.prod_U_P_LabMapping AS lm]) Select(groups=[izisprod.prod_U_P_LabMapping AS lm]) Source(groups=[izisprod.prod_U_P_LabMapping AS lm]) ============================================================================ EXECUTING CollapseSource AFTER: Project(groups=[], props={PROJECT_COLS=[Count], INTO_GROUP=#tmp_pr_retrieve_labres, OUTPUT_COLS=[Count], EST_CARDINALITY=1.8385565, EST_COL_STATS={Count=[-1.0, -1.0, -1.0]}}) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue], OUTPUT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue], EST_CARDINALITY=1.8385565, EST_COL_STATS={izisviews.pr_retrieve_labres.patientid_in=[1.0, 1.0, 1.0], f.variableid=[1.0, 1.0, -1.0], izisviews.pr_retrieve_labres.resultgroup_in=[1.0, 1.0, 1.0], f.SampleTime=[1.0, 1.0, -1.0], ...}}) Select(groups=[f]) Source(groups=[f]) Project(groups=[v], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue], EST_CARDINALITY=4.343175, EST_COL_STATS={ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC)=[2.3622744, 2.3622744, -1.0], v.variableid=[1.0, 1.0, -1.0], v.SampleTime=[1.0, 1.0, -1.0], v.EnterTime=[1.0, 1.0, -1.0], ...}}) Select(groups=[v]) Source(groups=[v]) Project(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], EST_CARDINALITY=11.971449, EST_COL_STATS={ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC)=[2.756382, 2.756382, -1.0], lcv.variableid_nieuw=[1.0, 1.0, -1.0], lcv.SampleTime=[1.0, 1.0, -1.0], lcv.EnterTime=[1.0, 1.0, -1.0], ...}}) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm, izisprod.prod_U_P_LabMapping AS lm]) Join(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv, wodandb.wodan_varmapping AS vm]) Select(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv]) Access(groups=[izisprod.prod_U_PV_LabCorrectValues AS lcv], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=[lcv.Status, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue], EST_CARDINALITY=509.80392, EST_COL_STATS={lcv.ActorID=[1.0, 254.90198, -1.0], lcv.ClassificationID=[1.0, 254.90198, -1.0], lcv.EnterTime=[1.0, 254.90198, -1.0], lcv.ExamType=[1.0, 254.90198, -1.0], ...}, ATOMIC_REQUEST=SELECT lcv.Status, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue FROM izisprod.prod_U_PV_LabCorrectValues AS lcv WHERE lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in}) Access(groups=[wodandb.wodan_varmapping AS vm], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=[vm.variableid], EST_CARDINALITY=3.0, EST_COL_STATS={vm.variableid=[3.0, 3.0, 1.0], vm.tablename=[1.0, 1.5, -1.0], vm.resultgroup=[1.0, 1.5, -1.0], vm.primaryvar=[1.0, 1.0, -1.0], ...}, ATOMIC_REQUEST=SELECT vm.variableid FROM wodandb.wodan_varmapping AS vm WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)}) Access(groups=[izisprod.prod_U_P_LabMapping AS lm], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=[lm.VariableID, lm.Labogroep], EST_CARDINALITY=39.445312, EST_COL_STATS={lm.VariableID=[1.6875, 19.722656, -1.0], lm.Labogroep=[1.6875, 19.722656, -1.0]}, IS_DEPENDENT_SET=true, ATOMIC_REQUEST=SELECT lm.VariableID, lm.Labogroep FROM izisprod.prod_U_P_LabMapping AS lm WHERE (lm.VariableID IN ()) AND (lm.Labogroep IN ())}) ============================================================================ CONVERTING PLAN TREE TO PROCESS TREE PROCESS PLAN = ProjectIntoNode(3) output=[Count] #tmp_pr_retrieve_labres ProjectNode(4) output=[izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue] [izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue] SelectNode(5) output=[f.variableid, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue] f.rang = 1 ProjectNode(6) output=[f.rang, f.variableid, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue] [ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue] WindowFunctionProjectNode(7) output=[ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC), v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue] SelectNode(8) output=[v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue] v.rang = 1 ProjectNode(9) output=[v.rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue] [ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue] WindowFunctionProjectNode(10) output=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC), lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue] JoinNode(11) [Dependent] [ENHANCED SORT JOIN (SORT/SORT)] [INNER JOIN] criteria=[lcv.variableid_oud=lm.VariableID, vm.variableid=lm.Labogroep] output=[lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue] JoinNode(12) [NESTED LOOP JOIN] [CROSS JOIN] output=[lcv.variableid_oud, vm.variableid, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue] SelectNode(13) output=[lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue] (bitand(convert(lcv.Status, integer), 2) <> 2) AND (bitand(convert(lcv.Status, integer), 8) = 8) AccessNode(14) output=[lcv.Status, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue] SELECT g_0.Status, g_0.variableid_oud, g_0.ResultID, g_0.ResultNo, g_0.variableid_nieuw, g_0.SampleTime, g_0.EnterTime, g_0.varvalue, g_0.StringValue FROM izisprod.prod_U_PV_LabCorrectValues AS g_0 WHERE g_0.PatientID = izisviews.pr_retrieve_labres.patientid_in AccessNode(15) output=[vm.variableid] SELECT g_0.variableid FROM wodandb.wodan_varmapping AS g_0 WHERE (g_0.tablename = 'la') AND (g_0.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in) DependentAccessNode(16) output=[lm.VariableID, lm.Labogroep] SELECT g_0.VariableID, g_0.Labogroep FROM izisprod.prod_U_P_LabMapping AS g_0 WHERE (g_0.VariableID IN ()) AND (g_0.Labogroep IN ()) ============================================================================ ---------------------------------------------------------------------------- OPTIMIZATION COMPLETE: PROCESSOR PLAN: ProjectIntoNode(3) output=[Count] #tmp_pr_retrieve_labres ProjectNode(4) output=[izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue] [izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue] SelectNode(5) output=[f.variableid, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue] f.rang = 1 ProjectNode(6) output=[f.rang, f.variableid, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue] [ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue] WindowFunctionProjectNode(7) output=[ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC), v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue] SelectNode(8) output=[v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue] v.rang = 1 ProjectNode(9) output=[v.rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue] [ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue] WindowFunctionProjectNode(10) output=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC), lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue] JoinNode(11) [Dependent] [ENHANCED SORT JOIN (SORT/SORT)] [INNER JOIN] criteria=[lcv.variableid_oud=lm.VariableID, vm.variableid=lm.Labogroep] output=[lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue] JoinNode(12) [NESTED LOOP JOIN] [CROSS JOIN] output=[lcv.variableid_oud, vm.variableid, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue] SelectNode(13) output=[lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue] (bitand(convert(lcv.Status, integer), 2) <> 2) AND (bitand(convert(lcv.Status, integer), 8) = 8) AccessNode(14) output=[lcv.Status, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue] SELECT g_0.Status, g_0.variableid_oud, g_0.ResultID, g_0.ResultNo, g_0.variableid_nieuw, g_0.SampleTime, g_0.EnterTime, g_0.varvalue, g_0.StringValue FROM izisprod.prod_U_PV_LabCorrectValues AS g_0 WHERE g_0.PatientID = izisviews.pr_retrieve_labres.patientid_in AccessNode(15) output=[vm.variableid] SELECT g_0.variableid FROM wodandb.wodan_varmapping AS g_0 WHERE (g_0.tablename = 'la') AND (g_0.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in) DependentAccessNode(16) output=[lm.VariableID, lm.Labogroep] SELECT g_0.VariableID, g_0.Labogroep FROM izisprod.prod_U_P_LabMapping AS g_0 WHERE (g_0.VariableID IN ()) AND (g_0.Labogroep IN ()) ============================================================================ ---------------------------------------------------------------------------- OPTIMIZE: INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1 ---------------------------------------------------------------------------- GENERATE CANONICAL: INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1 CANONICAL PLAN: Project(groups=[], props={PROJECT_COLS=[Count], INTO_GROUP=#tmp_pr_retrieve_labres}) Source(groups=[#tmp_pr_retrieve_labres], props={ATOMIC_REQUEST=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1, VIRTUAL_COMMAND=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1}) Project(groups=[f], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue]}) Select(groups=[f], props={SELECT_CRITERIA=f.rang = 1}) Source(groups=[f], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1, SYMBOL_MAP={f.variableid=v.variableid, f.SampleTime=v.SampleTime, f.EnterTime=v.EnterTime, f.varvalue=v.varvalue, f.StringValue=v.StringValue, f.rang=ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC)}}) Project(groups=[v], props={PROJECT_COLS=[v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang], HAS_WINDOW_FUNCTIONS=true}) Select(groups=[v], props={SELECT_CRITERIA=v.rang = 1}) Source(groups=[v], props={NESTED_COMMAND=SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID AND lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv.Status, integer), 8) = 8 AND bitand(convert(lcv.Status, integer), 2) <> 2 WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v.variableid=lcv.variableid_nieuw, v.SampleTime=lcv.SampleTime, v.EnterTime=lcv.EnterTime, v.varvalue=lcv.varvalue, v.StringValue=lcv.StringValue, v.rang=ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC)}}) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv], props={PROJECT_COLS=[lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang], HAS_WINDOW_FUNCTIONS=true}) Select(groups=[wodandb.wodan_varmapping AS vm], props={SELECT_CRITERIA=vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in}) Select(groups=[wodandb.wodan_varmapping AS vm], props={SELECT_CRITERIA=vm.tablename = 'la'}) Join(groups=[wodandb.wodan_varmapping AS vm, iziswh.wh_U_P_LabMapping AS lm, iziswh.wh_U_PV_LabCorrectValues AS lcv], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv.variableid_oud = lm.VariableID, lcv.PatientID = izisviews.pr_retrieve_labres.patientid_in, bitand(convert(lcv.Status, integer), 8) = 8, bitand(convert(lcv.Status, integer), 2) <> 2]}) Join(groups=[wodandb.wodan_varmapping AS vm, iziswh.wh_U_P_LabMapping AS lm], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[vm.variableid = lm.Labogroep]}) Source(groups=[wodandb.wodan_varmapping AS vm]) Source(groups=[iziswh.wh_U_P_LabMapping AS lm]) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv]) ============================================================================ EXECUTING PlaceAccess AFTER: Project(groups=[], props={PROJECT_COLS=[Count], INTO_GROUP=#tmp_pr_retrieve_labres}) Source(groups=[#tmp_pr_retrieve_labres], props={ATOMIC_REQUEST=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1) AS f WHERE f__1.rang = 1, VIRTUAL_COMMAND=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1) AS f WHERE f__1.rang = 1}) Project(groups=[f AS f__1], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f__1.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue]}) Select(groups=[f AS f__1], props={SELECT_CRITERIA=f__1.rang = 1}) Source(groups=[f AS f__1], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1, SYMBOL_MAP={f__1.variableid=v__1.variableid, f__1.SampleTime=v__1.SampleTime, f__1.EnterTime=v__1.EnterTime, f__1.varvalue=v__1.varvalue, f__1.StringValue=v__1.StringValue, f__1.rang=ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC)}}) Project(groups=[v AS v__1], props={PROJECT_COLS=[v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang], HAS_WINDOW_FUNCTIONS=true}) Select(groups=[v AS v__1], props={SELECT_CRITERIA=v__1.rang = 1}) Source(groups=[v AS v__1], props={NESTED_COMMAND=SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v__1.variableid=lcv__1.variableid_nieuw, v__1.SampleTime=lcv__1.SampleTime, v__1.EnterTime=lcv__1.EnterTime, v__1.varvalue=lcv__1.varvalue, v__1.StringValue=lcv__1.StringValue, v__1.rang=ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC)}}) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={PROJECT_COLS=[lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang], HAS_WINDOW_FUNCTIONS=true}) Select(groups=[wodandb.wodan_varmapping AS vm__1], props={SELECT_CRITERIA=vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in}) Select(groups=[wodandb.wodan_varmapping AS vm__1], props={SELECT_CRITERIA=vm__1.tablename = 'la'}) Join(groups=[wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1, iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv__1.variableid_oud = lm__1.VariableID, lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in, bitand(convert(lcv__1.Status, integer), 8) = 8, bitand(convert(lcv__1.Status, integer), 2) <> 2]}) Join(groups=[wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[vm__1.variableid = lm__1.Labogroep]}) Access(groups=[wodandb.wodan_varmapping AS vm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302}) Source(groups=[wodandb.wodan_varmapping AS vm__1]) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac}) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac}) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) ============================================================================ EXECUTING AssignOutputElements AFTER: Project(groups=[], props={PROJECT_COLS=[Count], INTO_GROUP=#tmp_pr_retrieve_labres, OUTPUT_COLS=[Count]}) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f AS f__1], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f__1.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue], OUTPUT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f__1.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue]}) Select(groups=[f AS f__1], props={SELECT_CRITERIA=f__1.rang = 1, OUTPUT_COLS=[f__1.variableid, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue]}) Source(groups=[f AS f__1], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1, SYMBOL_MAP={f__1.rang=ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC), f__1.variableid=v__1.variableid, f__1.SampleTime=v__1.SampleTime, f__1.EnterTime=v__1.EnterTime, f__1.varvalue=v__1.varvalue, f__1.StringValue=v__1.StringValue}, OUTPUT_COLS=[f__1.rang, f__1.variableid, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue]}) Project(groups=[v AS v__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue]}) Select(groups=[v AS v__1], props={SELECT_CRITERIA=v__1.rang = 1, OUTPUT_COLS=[v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue]}) Source(groups=[v AS v__1], props={NESTED_COMMAND=SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v__1.rang=ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC), v__1.variableid=lcv__1.variableid_nieuw, v__1.SampleTime=lcv__1.SampleTime, v__1.EnterTime=lcv__1.EnterTime, v__1.varvalue=lcv__1.varvalue, v__1.StringValue=lcv__1.StringValue}, OUTPUT_COLS=[v__1.rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue]}) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) Select(groups=[wodandb.wodan_varmapping AS vm__1], props={SELECT_CRITERIA=vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in, OUTPUT_COLS=[lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) Select(groups=[wodandb.wodan_varmapping AS vm__1], props={SELECT_CRITERIA=vm__1.tablename = 'la', OUTPUT_COLS=[vm__1.resultgroup, lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) Join(groups=[wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1, iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv__1.variableid_oud = lm__1.VariableID, lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in, bitand(convert(lcv__1.Status, integer), 8) = 8, bitand(convert(lcv__1.Status, integer), 2) <> 2], OUTPUT_COLS=[vm__1.tablename, vm__1.resultgroup, lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) Join(groups=[wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[vm__1.variableid = lm__1.Labogroep], OUTPUT_COLS=[lm__1.VariableID, vm__1.tablename, vm__1.resultgroup]}) Access(groups=[wodandb.wodan_varmapping AS vm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=[vm__1.variableid, vm__1.tablename, vm__1.resultgroup]}) Source(groups=[wodandb.wodan_varmapping AS vm__1], props={OUTPUT_COLS=[vm__1.variableid, vm__1.tablename, vm__1.resultgroup]}) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=[lm__1.Labogroep, lm__1.VariableID]}) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={OUTPUT_COLS=[lm__1.Labogroep, lm__1.VariableID]}) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=[lcv__1.variableid_oud, lcv__1.PatientID, lcv__1.Status, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={OUTPUT_COLS=[lcv__1.variableid_oud, lcv__1.PatientID, lcv__1.Status, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) ============================================================================ EXECUTING PushSelectCriteria AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f AS f__1]) Select(groups=[f AS f__1], props={SELECT_CRITERIA=f__1.rang = 1, OUTPUT_COLS=[f__1.variableid, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue]}) Source(groups=[f AS f__1], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1, SYMBOL_MAP={f__1.rang=ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC), f__1.variableid=v__1.variableid, f__1.SampleTime=v__1.SampleTime, f__1.EnterTime=v__1.EnterTime, f__1.varvalue=v__1.varvalue, f__1.StringValue=v__1.StringValue}, OUTPUT_COLS=[f__1.rang, f__1.variableid, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue]}) Project(groups=[v AS v__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue]}) Select(groups=[v AS v__1], props={SELECT_CRITERIA=v__1.rang = 1, OUTPUT_COLS=[v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue]}) Source(groups=[v AS v__1], props={NESTED_COMMAND=SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v__1.rang=ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC), v__1.variableid=lcv__1.variableid_nieuw, v__1.SampleTime=lcv__1.SampleTime, v__1.EnterTime=lcv__1.EnterTime, v__1.varvalue=lcv__1.varvalue, v__1.StringValue=lcv__1.StringValue}, OUTPUT_COLS=[v__1.rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue]}) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) Join(groups=[wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1, iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv__1.variableid_oud = lm__1.VariableID, lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in, bitand(convert(lcv__1.Status, integer), 8) = 8, bitand(convert(lcv__1.Status, integer), 2) <> 2], OUTPUT_COLS=[vm__1.tablename, vm__1.resultgroup, lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) Join(groups=[wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[vm__1.variableid = lm__1.Labogroep], OUTPUT_COLS=[lm__1.VariableID, vm__1.tablename, vm__1.resultgroup]}) Access(groups=[wodandb.wodan_varmapping AS vm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=[vm__1.variableid, vm__1.tablename, vm__1.resultgroup]}) Select(groups=[wodandb.wodan_varmapping AS vm__1], props={SELECT_CRITERIA=(vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), OUTPUT_COLS=[lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) Source(groups=[wodandb.wodan_varmapping AS vm__1], props={OUTPUT_COLS=[vm__1.variableid, vm__1.tablename, vm__1.resultgroup]}) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) ============================================================================ EXECUTING MergeVirtual AFTER: Project(groups=[], props={PROJECT_COLS=[Count], INTO_GROUP=#tmp_pr_retrieve_labres, OUTPUT_COLS=[Count]}) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f AS f__1]) Select(groups=[f AS f__1]) Source(groups=[f AS f__1], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1, SYMBOL_MAP={f__1.rang=ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC), f__1.variableid=v__1.variableid, f__1.SampleTime=v__1.SampleTime, f__1.EnterTime=v__1.EnterTime, f__1.varvalue=v__1.varvalue, f__1.StringValue=v__1.StringValue}, OUTPUT_COLS=[f__1.rang, f__1.variableid, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue]}) Project(groups=[v AS v__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue]}) Select(groups=[v AS v__1]) Source(groups=[v AS v__1], props={NESTED_COMMAND=SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v__1.rang=ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC), v__1.variableid=lcv__1.variableid_nieuw, v__1.SampleTime=lcv__1.SampleTime, v__1.EnterTime=lcv__1.EnterTime, v__1.varvalue=lcv__1.varvalue, v__1.StringValue=lcv__1.StringValue}, OUTPUT_COLS=[v__1.rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue]}) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) Join(groups=[wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1, iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Join(groups=[wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1]) Access(groups=[wodandb.wodan_varmapping AS vm__1]) Select(groups=[wodandb.wodan_varmapping AS vm__1]) Source(groups=[wodandb.wodan_varmapping AS vm__1]) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) ============================================================================ EXECUTING PushNonJoinCriteria AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f AS f__1]) Select(groups=[f AS f__1]) Source(groups=[f AS f__1]) Project(groups=[v AS v__1]) Select(groups=[v AS v__1]) Source(groups=[v AS v__1]) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Join(groups=[wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1, iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv__1.variableid_oud = lm__1.VariableID], OUTPUT_COLS=[vm__1.tablename, vm__1.resultgroup, lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) Join(groups=[wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[vm__1.variableid = lm__1.Labogroep], OUTPUT_COLS=[lm__1.VariableID, vm__1.tablename, vm__1.resultgroup]}) Access(groups=[wodandb.wodan_varmapping AS vm__1]) Select(groups=[wodandb.wodan_varmapping AS vm__1]) Source(groups=[wodandb.wodan_varmapping AS vm__1]) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 2) <> 2}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 8) = 8}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in}) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=[lcv__1.variableid_oud, lcv__1.PatientID, lcv__1.Status, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) ============================================================================ EXECUTING PushSelectCriteria AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f AS f__1]) Select(groups=[f AS f__1], props={SELECT_CRITERIA=f__1.rang = 1, OUTPUT_COLS=[f__1.variableid, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue]}) Source(groups=[f AS f__1], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1, SYMBOL_MAP={f__1.rang=ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC), f__1.variableid=v__1.variableid, f__1.SampleTime=v__1.SampleTime, f__1.EnterTime=v__1.EnterTime, f__1.varvalue=v__1.varvalue, f__1.StringValue=v__1.StringValue}, OUTPUT_COLS=[f__1.rang, f__1.variableid, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue]}) Project(groups=[v AS v__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue]}) Select(groups=[v AS v__1], props={SELECT_CRITERIA=v__1.rang = 1, OUTPUT_COLS=[v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue]}) Source(groups=[v AS v__1], props={NESTED_COMMAND=SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v__1.rang=ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC), v__1.variableid=lcv__1.variableid_nieuw, v__1.SampleTime=lcv__1.SampleTime, v__1.EnterTime=lcv__1.EnterTime, v__1.varvalue=lcv__1.varvalue, v__1.StringValue=lcv__1.StringValue}, OUTPUT_COLS=[v__1.rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue]}) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) Join(groups=[wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1, iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv__1.variableid_oud = lm__1.VariableID], OUTPUT_COLS=[vm__1.tablename, vm__1.resultgroup, lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) Join(groups=[wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1]) Access(groups=[wodandb.wodan_varmapping AS vm__1]) Select(groups=[wodandb.wodan_varmapping AS vm__1]) Source(groups=[wodandb.wodan_varmapping AS vm__1]) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 8) = 8}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 2) <> 2}) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=[lcv__1.variableid_oud, lcv__1.PatientID, lcv__1.Status, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in}) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={OUTPUT_COLS=[lcv__1.variableid_oud, lcv__1.PatientID, lcv__1.Status, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) ============================================================================ EXECUTING CleanCriteria AFTER: Project(groups=[], props={PROJECT_COLS=[Count], INTO_GROUP=#tmp_pr_retrieve_labres, OUTPUT_COLS=null}) Source(groups=[#tmp_pr_retrieve_labres], props={ATOMIC_REQUEST=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1) AS f WHERE f__1.rang = 1, VIRTUAL_COMMAND=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1) AS f WHERE f__1.rang = 1, OUTPUT_COLS=null}) Project(groups=[f AS f__1], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f__1.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue], OUTPUT_COLS=null}) Select(groups=[f AS f__1], props={SELECT_CRITERIA=f__1.rang = 1, OUTPUT_COLS=null}) Source(groups=[f AS f__1], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1, SYMBOL_MAP={f__1.rang=ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC), f__1.variableid=v__1.variableid, f__1.SampleTime=v__1.SampleTime, f__1.EnterTime=v__1.EnterTime, f__1.varvalue=v__1.varvalue, f__1.StringValue=v__1.StringValue}, OUTPUT_COLS=null}) Project(groups=[v AS v__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=null}) Select(groups=[v AS v__1], props={SELECT_CRITERIA=v__1.rang = 1, OUTPUT_COLS=null}) Source(groups=[v AS v__1], props={NESTED_COMMAND=SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v__1.rang=ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC), v__1.variableid=lcv__1.variableid_nieuw, v__1.SampleTime=lcv__1.SampleTime, v__1.EnterTime=lcv__1.EnterTime, v__1.varvalue=lcv__1.varvalue, v__1.StringValue=lcv__1.StringValue}, OUTPUT_COLS=null}) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=null}) Join(groups=[wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1, iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv__1.variableid_oud = lm__1.VariableID], OUTPUT_COLS=null}) Join(groups=[wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[vm__1.variableid = lm__1.Labogroep], OUTPUT_COLS=null}) Access(groups=[wodandb.wodan_varmapping AS vm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=null}) Select(groups=[wodandb.wodan_varmapping AS vm__1], props={SELECT_CRITERIA=(vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), OUTPUT_COLS=null}) Source(groups=[wodandb.wodan_varmapping AS vm__1], props={OUTPUT_COLS=null}) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=null}) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={OUTPUT_COLS=null}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 8) = 8, OUTPUT_COLS=null}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 2) <> 2, OUTPUT_COLS=null}) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=null}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in, OUTPUT_COLS=null}) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={OUTPUT_COLS=null}) ============================================================================ EXECUTING RaiseAccess LOW [Relational Planner] bitand function not supported by source iziswh - bitand(convert(lcv__1.Status, integer), 2) was not pushed AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f AS f__1]) Select(groups=[f AS f__1]) Source(groups=[f AS f__1]) Project(groups=[v AS v__1]) Select(groups=[v AS v__1]) Source(groups=[v AS v__1]) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Join(groups=[wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1, iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv__1.variableid_oud = lm__1.VariableID], OUTPUT_COLS=null}) Join(groups=[wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[vm__1.variableid = lm__1.Labogroep], OUTPUT_COLS=null}) Access(groups=[wodandb.wodan_varmapping AS vm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=null}) Select(groups=[wodandb.wodan_varmapping AS vm__1]) Source(groups=[wodandb.wodan_varmapping AS vm__1]) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=null}) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 8) = 8, OUTPUT_COLS=null}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 2) <> 2, OUTPUT_COLS=null}) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=null}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) ============================================================================ EXECUTING CopyCriteria AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f AS f__1]) Select(groups=[f AS f__1], props={SELECT_CRITERIA=f__1.rang = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[f AS f__1]) Project(groups=[v AS v__1]) Select(groups=[v AS v__1], props={SELECT_CRITERIA=v__1.rang = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[v AS v__1]) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Join(groups=[wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1, iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv__1.variableid_oud = lm__1.VariableID], OUTPUT_COLS=null, IS_COPIED=true}) Join(groups=[wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[vm__1.variableid = lm__1.Labogroep], OUTPUT_COLS=null, IS_COPIED=true}) Access(groups=[wodandb.wodan_varmapping AS vm__1]) Select(groups=[wodandb.wodan_varmapping AS vm__1], props={SELECT_CRITERIA=(vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[wodandb.wodan_varmapping AS vm__1]) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 8) = 8, OUTPUT_COLS=null, IS_COPIED=true}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 2) <> 2, OUTPUT_COLS=null, IS_COPIED=true}) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) ============================================================================ EXECUTING CleanCriteria AFTER: Project(groups=[], props={PROJECT_COLS=[Count], INTO_GROUP=#tmp_pr_retrieve_labres, OUTPUT_COLS=null}) Source(groups=[#tmp_pr_retrieve_labres], props={ATOMIC_REQUEST=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1) AS f WHERE f__1.rang = 1, VIRTUAL_COMMAND=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1) AS f WHERE f__1.rang = 1, OUTPUT_COLS=null}) Project(groups=[f AS f__1], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f__1.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue], OUTPUT_COLS=null}) Select(groups=[f AS f__1], props={SELECT_CRITERIA=f__1.rang = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[f AS f__1], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1, SYMBOL_MAP={f__1.rang=ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC), f__1.variableid=v__1.variableid, f__1.SampleTime=v__1.SampleTime, f__1.EnterTime=v__1.EnterTime, f__1.varvalue=v__1.varvalue, f__1.StringValue=v__1.StringValue}, OUTPUT_COLS=null}) Project(groups=[v AS v__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=null}) Select(groups=[v AS v__1], props={SELECT_CRITERIA=v__1.rang = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[v AS v__1], props={NESTED_COMMAND=SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v__1.rang=ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC), v__1.variableid=lcv__1.variableid_nieuw, v__1.SampleTime=lcv__1.SampleTime, v__1.EnterTime=lcv__1.EnterTime, v__1.varvalue=lcv__1.varvalue, v__1.StringValue=lcv__1.StringValue}, OUTPUT_COLS=null}) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=null}) Join(groups=[wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1, iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv__1.variableid_oud = lm__1.VariableID], OUTPUT_COLS=null, IS_COPIED=true}) Join(groups=[wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[vm__1.variableid = lm__1.Labogroep], OUTPUT_COLS=null, IS_COPIED=true}) Access(groups=[wodandb.wodan_varmapping AS vm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=null}) Select(groups=[wodandb.wodan_varmapping AS vm__1], props={SELECT_CRITERIA=(vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[wodandb.wodan_varmapping AS vm__1], props={OUTPUT_COLS=null}) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=null}) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={OUTPUT_COLS=null}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 8) = 8, OUTPUT_COLS=null, IS_COPIED=true}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 2) <> 2, OUTPUT_COLS=null, IS_COPIED=true}) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=null}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={OUTPUT_COLS=null}) ============================================================================ EXECUTING PlanJoins AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f AS f__1]) Select(groups=[f AS f__1]) Source(groups=[f AS f__1]) Project(groups=[v AS v__1]) Select(groups=[v AS v__1]) Source(groups=[v AS v__1]) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=null}) Select(groups=[wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1], props={SELECT_CRITERIA=vm__1.variableid = lm__1.Labogroep, EST_SELECTIVITY=0.025310518}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, iziswh.wh_U_P_LabMapping AS lm__1], props={SELECT_CRITERIA=lcv__1.variableid_oud = lm__1.VariableID, EST_SELECTIVITY=0.28578869}) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP}) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 8) = 8, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.ActorID=[1.0, 1.0, -1.0], lcv__1.ClassificationID=[1.0, 1.0, -1.0], lcv__1.EnterTime=[1.0, 1.0, -1.0], lcv__1.ExamType=[1.0, 1.0, -1.0], ...}}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 2) <> 2, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.ActorID=[1.0, 1.0, -1.0], lcv__1.ClassificationID=[1.0, 1.0, -1.0], lcv__1.EnterTime=[1.0, 1.0, -1.0], lcv__1.ExamType=[1.0, 1.0, -1.0], ...}}) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=null, EST_CARDINALITY=8366.2, EST_COL_STATS={lcv__1.ActorID=[1.0, 4183.1, -1.0], lcv__1.ClassificationID=[1.0, 4183.1, -1.0], lcv__1.EnterTime=[1.0, 4183.1, -1.0], lcv__1.ExamType=[1.0, 4183.1, -1.0], ...}}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=8366.2, EST_COL_STATS={lcv__1.ActorID=[1.0, 4183.1, -1.0], lcv__1.ClassificationID=[1.0, 4183.1, -1.0], lcv__1.EnterTime=[1.0, 4183.1, -1.0], lcv__1.ExamType=[1.0, 4183.1, -1.0], ...}}) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={OUTPUT_COLS=null, EST_COL_STATS={lcv__1.ActorID=[8367.0, 3.5E7, -1.0], lcv__1.ClassificationID=[8367.0, 3.5E7, -1.0], lcv__1.EnterTime=[8367.0, 3.5E7, -1.0], lcv__1.ExamType=[8367.0, 3.5E7, -1.0], ...}, EST_CARDINALITY=7.0E7}) Access(groups=[wodandb.wodan_varmapping AS vm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=null, EST_CARDINALITY=3.0, EST_COL_STATS={vm__1.variableid=[3.0, 3.0, 1.0], vm__1.tablename=[1.0, 1.5, -1.0], vm__1.resultgroup=[1.0, 1.5, -1.0], vm__1.primaryvar=[1.0, 1.0, -1.0], ...}}) Select(groups=[wodandb.wodan_varmapping AS vm__1], props={SELECT_CRITERIA=(vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=3.0, EST_COL_STATS={vm__1.variableid=[3.0, 3.0, 1.0], vm__1.tablename=[1.0, 1.5, -1.0], vm__1.resultgroup=[1.0, 1.5, -1.0], vm__1.primaryvar=[1.0, 1.0, -1.0], ...}}) Source(groups=[wodandb.wodan_varmapping AS vm__1], props={OUTPUT_COLS=null, EST_COL_STATS={vm__1.variableid=[25.0, 25.0, 0.0], vm__1.tablename=[5.0, 12.5, -1.0], vm__1.resultgroup=[5.0, 12.5, -1.0], vm__1.primaryvar=[2.0, 2.0, -1.0], ...}, EST_CARDINALITY=25.0}) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=null, EST_CARDINALITY=561.0, EST_COL_STATS={lm__1.Labogroep=[24.0, 280.5, -1.0], lm__1.Abbreviation=[24.0, 280.5, -1.0], lm__1.Name=[24.0, 280.5, -1.0], lm__1.VariableID=[24.0, 280.5, -1.0], ...}}) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={OUTPUT_COLS=null, EST_COL_STATS={lm__1.Labogroep=[24.0, 280.5, -1.0], lm__1.Abbreviation=[24.0, 280.5, -1.0], lm__1.Name=[24.0, 280.5, -1.0], lm__1.VariableID=[24.0, 280.5, -1.0], ...}, EST_CARDINALITY=561.0}) ============================================================================ EXECUTING PushSelectCriteria AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f AS f__1]) Select(groups=[f AS f__1], props={SELECT_CRITERIA=f__1.rang = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[f AS f__1]) Project(groups=[v AS v__1]) Select(groups=[v AS v__1], props={SELECT_CRITERIA=v__1.rang = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[v AS v__1]) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=null}) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv__1.variableid_oud = lm__1.VariableID, vm__1.variableid = lm__1.Labogroep]}) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1]) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 8) = 8, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.ActorID=[1.0, 1.0, -1.0], lcv__1.ClassificationID=[1.0, 1.0, -1.0], lcv__1.EnterTime=[1.0, 1.0, -1.0], lcv__1.ExamType=[1.0, 1.0, -1.0], ...}}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 2) <> 2, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.ActorID=[1.0, 1.0, -1.0], lcv__1.ClassificationID=[1.0, 1.0, -1.0], lcv__1.EnterTime=[1.0, 1.0, -1.0], lcv__1.ExamType=[1.0, 1.0, -1.0], ...}}) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=8366.2, EST_COL_STATS={lcv__1.ActorID=[1.0, 4183.1, -1.0], lcv__1.ClassificationID=[1.0, 4183.1, -1.0], lcv__1.EnterTime=[1.0, 4183.1, -1.0], lcv__1.ExamType=[1.0, 4183.1, -1.0], ...}}) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Access(groups=[wodandb.wodan_varmapping AS vm__1]) Select(groups=[wodandb.wodan_varmapping AS vm__1], props={SELECT_CRITERIA=(vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=3.0, EST_COL_STATS={vm__1.variableid=[3.0, 3.0, 1.0], vm__1.tablename=[1.0, 1.5, -1.0], vm__1.resultgroup=[1.0, 1.5, -1.0], vm__1.primaryvar=[1.0, 1.0, -1.0], ...}}) Source(groups=[wodandb.wodan_varmapping AS vm__1]) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) ============================================================================ EXECUTING RaiseAccess LOW [Relational Planner] bitand function not supported by source iziswh - bitand(convert(lcv__1.Status, integer), 2) was not pushed AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f AS f__1]) Select(groups=[f AS f__1]) Source(groups=[f AS f__1]) Project(groups=[v AS v__1]) Select(groups=[v AS v__1]) Source(groups=[v AS v__1]) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv__1.variableid_oud = lm__1.VariableID, vm__1.variableid = lm__1.Labogroep]}) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 8) = 8, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.ActorID=[1.0, 1.0, -1.0], lcv__1.ClassificationID=[1.0, 1.0, -1.0], lcv__1.EnterTime=[1.0, 1.0, -1.0], lcv__1.ExamType=[1.0, 1.0, -1.0], ...}}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 2) <> 2, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.ActorID=[1.0, 1.0, -1.0], lcv__1.ClassificationID=[1.0, 1.0, -1.0], lcv__1.EnterTime=[1.0, 1.0, -1.0], lcv__1.ExamType=[1.0, 1.0, -1.0], ...}}) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=null, EST_CARDINALITY=8366.2, EST_COL_STATS={lcv__1.ActorID=[1.0, 4183.1, -1.0], lcv__1.ClassificationID=[1.0, 4183.1, -1.0], lcv__1.EnterTime=[1.0, 4183.1, -1.0], lcv__1.ExamType=[1.0, 4183.1, -1.0], ...}}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Access(groups=[wodandb.wodan_varmapping AS vm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=null, EST_CARDINALITY=3.0, EST_COL_STATS={vm__1.variableid=[3.0, 3.0, 1.0], vm__1.tablename=[1.0, 1.5, -1.0], vm__1.resultgroup=[1.0, 1.5, -1.0], vm__1.primaryvar=[1.0, 1.0, -1.0], ...}}) Select(groups=[wodandb.wodan_varmapping AS vm__1]) Source(groups=[wodandb.wodan_varmapping AS vm__1]) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=null, EST_CARDINALITY=561.0, EST_COL_STATS={lm__1.Labogroep=[24.0, 280.5, -1.0], lm__1.Abbreviation=[24.0, 280.5, -1.0], lm__1.Name=[24.0, 280.5, -1.0], lm__1.VariableID=[24.0, 280.5, -1.0], ...}}) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) ============================================================================ EXECUTING PlanOuterJoins AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f AS f__1]) Select(groups=[f AS f__1]) Source(groups=[f AS f__1]) Project(groups=[v AS v__1]) Select(groups=[v AS v__1]) Source(groups=[v AS v__1]) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lcv__1.variableid_oud = lm__1.VariableID, vm__1.variableid = lm__1.Labogroep]}) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Access(groups=[wodandb.wodan_varmapping AS vm__1]) Select(groups=[wodandb.wodan_varmapping AS vm__1]) Source(groups=[wodandb.wodan_varmapping AS vm__1]) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) ============================================================================ EXECUTING ChooseJoinStrategy AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f AS f__1]) Select(groups=[f AS f__1]) Source(groups=[f AS f__1]) Project(groups=[v AS v__1]) Select(groups=[v AS v__1]) Source(groups=[v AS v__1]) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=MERGE, JOIN_CRITERIA=[lcv__1.variableid_oud = lm__1.VariableID, vm__1.variableid = lm__1.Labogroep], LEFT_EXPRESSIONS=[lcv__1.variableid_oud, vm__1.variableid], RIGHT_EXPRESSIONS=[lm__1.VariableID, lm__1.Labogroep], NON_EQUI_JOIN_CRITERIA=[]}) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Access(groups=[wodandb.wodan_varmapping AS vm__1]) Select(groups=[wodandb.wodan_varmapping AS vm__1]) Source(groups=[wodandb.wodan_varmapping AS vm__1]) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) ============================================================================ EXECUTING ChooseDependent LOW [Relational Planner] parent join is CROSS - Rejecting dependent join Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=null, EST_CARDINALITY=8366.2, EST_COL_STATS={lcv__1.ActorID=[1.0, 4183.1, -1.0], lcv__1.ClassificationID=[1.0, 4183.1, -1.0], lcv__1.EnterTime=[1.0, 4183.1, -1.0], lcv__1.ExamType=[1.0, 4183.1, -1.0], ...}} LOW [Relational Planner] parent join is CROSS - Rejecting dependent join Access(groups=[wodandb.wodan_varmapping AS vm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=null, EST_CARDINALITY=3.0, EST_COL_STATS={vm__1.variableid=[3.0, 3.0, 1.0], vm__1.tablename=[1.0, 1.5, -1.0], vm__1.resultgroup=[1.0, 1.5, -1.0], vm__1.primaryvar=[1.0, 1.0, -1.0], ...}} AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f AS f__1]) Select(groups=[f AS f__1]) Source(groups=[f AS f__1]) Project(groups=[v AS v__1]) Select(groups=[v AS v__1]) Source(groups=[v AS v__1]) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=MERGE, JOIN_CRITERIA=[lcv__1.variableid_oud = lm__1.VariableID, vm__1.variableid = lm__1.Labogroep], LEFT_EXPRESSIONS=[lm__1.VariableID, lm__1.Labogroep], RIGHT_EXPRESSIONS=[lcv__1.variableid_oud, vm__1.variableid], NON_EQUI_JOIN_CRITERIA=[], EST_CARDINALITY=null, DEPENDENT_VALUE_SOURCE=$dsc/id106}) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=null, EST_CARDINALITY=561.0, EST_COL_STATS={lm__1.Labogroep=[24.0, 280.5, -1.0], lm__1.Abbreviation=[24.0, 280.5, -1.0], lm__1.Name=[24.0, 280.5, -1.0], lm__1.VariableID=[24.0, 280.5, -1.0], ...}}) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={OUTPUT_COLS=null, EST_COL_STATS={lm__1.Labogroep=[24.0, 280.5, -1.0], lm__1.Abbreviation=[24.0, 280.5, -1.0], lm__1.Name=[24.0, 280.5, -1.0], lm__1.VariableID=[24.0, 280.5, -1.0], ...}, EST_CARDINALITY=561.0}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1], props={SELECT_CRITERIA=(lcv__1.variableid_oud, vm__1.variableid) IN (), IS_DEPENDENT_SET=true}) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP, EST_CARDINALITY=3.0, EST_COL_STATS={lcv__1.ActorID=[1.0, 1.0, -1.0], lcv__1.ClassificationID=[1.0, 1.0, -1.0], lcv__1.EnterTime=[1.0, 1.0, -1.0], lcv__1.ExamType=[1.0, 1.0, -1.0], ...}}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 8) = 8, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.ActorID=[1.0, 1.0, -1.0], lcv__1.ClassificationID=[1.0, 1.0, -1.0], lcv__1.EnterTime=[1.0, 1.0, -1.0], lcv__1.ExamType=[1.0, 1.0, -1.0], ...}}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 2) <> 2, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.ActorID=[1.0, 1.0, -1.0], lcv__1.ClassificationID=[1.0, 1.0, -1.0], lcv__1.EnterTime=[1.0, 1.0, -1.0], lcv__1.ExamType=[1.0, 1.0, -1.0], ...}}) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=null, EST_CARDINALITY=8366.2, EST_COL_STATS={lcv__1.ActorID=[1.0, 4183.1, -1.0], lcv__1.ClassificationID=[1.0, 4183.1, -1.0], lcv__1.EnterTime=[1.0, 4183.1, -1.0], lcv__1.ExamType=[1.0, 4183.1, -1.0], ...}}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=8366.2, EST_COL_STATS={lcv__1.ActorID=[1.0, 4183.1, -1.0], lcv__1.ClassificationID=[1.0, 4183.1, -1.0], lcv__1.EnterTime=[1.0, 4183.1, -1.0], lcv__1.ExamType=[1.0, 4183.1, -1.0], ...}}) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={OUTPUT_COLS=null, EST_COL_STATS={lcv__1.ActorID=[8367.0, 3.5E7, -1.0], lcv__1.ClassificationID=[8367.0, 3.5E7, -1.0], lcv__1.EnterTime=[8367.0, 3.5E7, -1.0], lcv__1.ExamType=[8367.0, 3.5E7, -1.0], ...}, EST_CARDINALITY=7.0E7}) Access(groups=[wodandb.wodan_varmapping AS vm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=null, EST_CARDINALITY=3.0, EST_COL_STATS={vm__1.variableid=[3.0, 3.0, 1.0], vm__1.tablename=[1.0, 1.5, -1.0], vm__1.resultgroup=[1.0, 1.5, -1.0], vm__1.primaryvar=[1.0, 1.0, -1.0], ...}}) Select(groups=[wodandb.wodan_varmapping AS vm__1], props={SELECT_CRITERIA=(vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=3.0, EST_COL_STATS={vm__1.variableid=[3.0, 3.0, 1.0], vm__1.tablename=[1.0, 1.5, -1.0], vm__1.resultgroup=[1.0, 1.5, -1.0], vm__1.primaryvar=[1.0, 1.0, -1.0], ...}}) Source(groups=[wodandb.wodan_varmapping AS vm__1], props={OUTPUT_COLS=null, EST_COL_STATS={vm__1.variableid=[25.0, 25.0, 0.0], vm__1.tablename=[5.0, 12.5, -1.0], vm__1.resultgroup=[5.0, 12.5, -1.0], vm__1.primaryvar=[2.0, 2.0, -1.0], ...}, EST_CARDINALITY=25.0}) ============================================================================ EXECUTING PushSelectCriteria AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f AS f__1]) Select(groups=[f AS f__1], props={SELECT_CRITERIA=f__1.rang = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[f AS f__1]) Project(groups=[v AS v__1]) Select(groups=[v AS v__1], props={SELECT_CRITERIA=v__1.rang = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[v AS v__1]) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=MERGE, JOIN_CRITERIA=[lcv__1.variableid_oud = lm__1.VariableID, vm__1.variableid = lm__1.Labogroep], LEFT_EXPRESSIONS=[lm__1.VariableID, lm__1.Labogroep], RIGHT_EXPRESSIONS=[lcv__1.variableid_oud, vm__1.variableid], NON_EQUI_JOIN_CRITERIA=[], EST_CARDINALITY=null, DEPENDENT_VALUE_SOURCE=$dsc/id106}) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP, EST_CARDINALITY=3.0, EST_COL_STATS={lcv__1.ActorID=[1.0, 1.0, -1.0], lcv__1.ClassificationID=[1.0, 1.0, -1.0], lcv__1.EnterTime=[1.0, 1.0, -1.0], lcv__1.ExamType=[1.0, 1.0, -1.0], ...}, JOIN_CRITERIA=[]}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 8) = 8, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.ActorID=[1.0, 1.0, -1.0], lcv__1.ClassificationID=[1.0, 1.0, -1.0], lcv__1.EnterTime=[1.0, 1.0, -1.0], lcv__1.ExamType=[1.0, 1.0, -1.0], ...}}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 2) <> 2, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.ActorID=[1.0, 1.0, -1.0], lcv__1.ClassificationID=[1.0, 1.0, -1.0], lcv__1.EnterTime=[1.0, 1.0, -1.0], lcv__1.ExamType=[1.0, 1.0, -1.0], ...}}) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=null, EST_CARDINALITY=8366.2, EST_COL_STATS={lcv__1.ActorID=[1.0, 4183.1, -1.0], lcv__1.ClassificationID=[1.0, 4183.1, -1.0], lcv__1.EnterTime=[1.0, 4183.1, -1.0], lcv__1.ExamType=[1.0, 4183.1, -1.0], ...}, IS_DEPENDENT_SET=true}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=(lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in) AND (lcv__1.variableid_oud IN ()), IS_DEPENDENT_SET=true, IS_PUSHED=true}) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={OUTPUT_COLS=null, EST_COL_STATS={lcv__1.ActorID=[8367.0, 3.5E7, -1.0], lcv__1.ClassificationID=[8367.0, 3.5E7, -1.0], lcv__1.EnterTime=[8367.0, 3.5E7, -1.0], lcv__1.ExamType=[8367.0, 3.5E7, -1.0], ...}, EST_CARDINALITY=7.0E7}) Access(groups=[wodandb.wodan_varmapping AS vm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=null, EST_CARDINALITY=3.0, EST_COL_STATS={vm__1.variableid=[3.0, 3.0, 1.0], vm__1.tablename=[1.0, 1.5, -1.0], vm__1.resultgroup=[1.0, 1.5, -1.0], vm__1.primaryvar=[1.0, 1.0, -1.0], ...}, IS_DEPENDENT_SET=true}) Select(groups=[wodandb.wodan_varmapping AS vm__1], props={SELECT_CRITERIA=(vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in) AND (vm__1.variableid IN ()), IS_DEPENDENT_SET=true, IS_PUSHED=true}) Source(groups=[wodandb.wodan_varmapping AS vm__1], props={OUTPUT_COLS=null, EST_COL_STATS={vm__1.variableid=[25.0, 25.0, 0.0], vm__1.tablename=[5.0, 12.5, -1.0], vm__1.resultgroup=[5.0, 12.5, -1.0], vm__1.primaryvar=[2.0, 2.0, -1.0], ...}, EST_CARDINALITY=25.0}) ============================================================================ EXECUTING CleanCriteria AFTER: Project(groups=[], props={PROJECT_COLS=[Count], INTO_GROUP=#tmp_pr_retrieve_labres, OUTPUT_COLS=null}) Source(groups=[#tmp_pr_retrieve_labres], props={ATOMIC_REQUEST=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1) AS f WHERE f__1.rang = 1, VIRTUAL_COMMAND=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1) AS f WHERE f__1.rang = 1, OUTPUT_COLS=null}) Project(groups=[f AS f__1], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f__1.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue], OUTPUT_COLS=null}) Select(groups=[f AS f__1], props={SELECT_CRITERIA=f__1.rang = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[f AS f__1], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1, SYMBOL_MAP={f__1.rang=ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC), f__1.variableid=v__1.variableid, f__1.SampleTime=v__1.SampleTime, f__1.EnterTime=v__1.EnterTime, f__1.varvalue=v__1.varvalue, f__1.StringValue=v__1.StringValue}, OUTPUT_COLS=null}) Project(groups=[v AS v__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=null}) Select(groups=[v AS v__1], props={SELECT_CRITERIA=v__1.rang = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[v AS v__1], props={NESTED_COMMAND=SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v__1.rang=ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC), v__1.variableid=lcv__1.variableid_nieuw, v__1.SampleTime=lcv__1.SampleTime, v__1.EnterTime=lcv__1.EnterTime, v__1.varvalue=lcv__1.varvalue, v__1.StringValue=lcv__1.StringValue}, OUTPUT_COLS=null}) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=null}) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=MERGE, JOIN_CRITERIA=[lcv__1.variableid_oud = lm__1.VariableID, vm__1.variableid = lm__1.Labogroep], LEFT_EXPRESSIONS=[lm__1.VariableID, lm__1.Labogroep], RIGHT_EXPRESSIONS=[lcv__1.variableid_oud, vm__1.variableid], NON_EQUI_JOIN_CRITERIA=[], EST_CARDINALITY=null, DEPENDENT_VALUE_SOURCE=$dsc/id106, OUTPUT_COLS=null}) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=null, EST_CARDINALITY=561.0, EST_COL_STATS={lm__1.Labogroep=[24.0, 280.5, -1.0], lm__1.Abbreviation=[24.0, 280.5, -1.0], lm__1.Name=[24.0, 280.5, -1.0], lm__1.VariableID=[24.0, 280.5, -1.0], ...}}) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={OUTPUT_COLS=null, EST_COL_STATS={lm__1.Labogroep=[24.0, 280.5, -1.0], lm__1.Abbreviation=[24.0, 280.5, -1.0], lm__1.Name=[24.0, 280.5, -1.0], lm__1.VariableID=[24.0, 280.5, -1.0], ...}, EST_CARDINALITY=561.0}) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP, EST_CARDINALITY=3.0, EST_COL_STATS={lcv__1.ActorID=[1.0, 1.0, -1.0], lcv__1.ClassificationID=[1.0, 1.0, -1.0], lcv__1.EnterTime=[1.0, 1.0, -1.0], lcv__1.ExamType=[1.0, 1.0, -1.0], ...}, JOIN_CRITERIA=[], OUTPUT_COLS=null}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 8) = 8, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.ActorID=[1.0, 1.0, -1.0], lcv__1.ClassificationID=[1.0, 1.0, -1.0], lcv__1.EnterTime=[1.0, 1.0, -1.0], lcv__1.ExamType=[1.0, 1.0, -1.0], ...}}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 2) <> 2, OUTPUT_COLS=null, IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.ActorID=[1.0, 1.0, -1.0], lcv__1.ClassificationID=[1.0, 1.0, -1.0], lcv__1.EnterTime=[1.0, 1.0, -1.0], lcv__1.ExamType=[1.0, 1.0, -1.0], ...}}) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=null, EST_CARDINALITY=8366.2, EST_COL_STATS={lcv__1.ActorID=[1.0, 4183.1, -1.0], lcv__1.ClassificationID=[1.0, 4183.1, -1.0], lcv__1.EnterTime=[1.0, 4183.1, -1.0], lcv__1.ExamType=[1.0, 4183.1, -1.0], ...}, IS_DEPENDENT_SET=true}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=(lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in) AND (lcv__1.variableid_oud IN ()), IS_DEPENDENT_SET=true, IS_PUSHED=true, OUTPUT_COLS=null}) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={OUTPUT_COLS=null, EST_COL_STATS={lcv__1.ActorID=[8367.0, 3.5E7, -1.0], lcv__1.ClassificationID=[8367.0, 3.5E7, -1.0], lcv__1.EnterTime=[8367.0, 3.5E7, -1.0], lcv__1.ExamType=[8367.0, 3.5E7, -1.0], ...}, EST_CARDINALITY=7.0E7}) Access(groups=[wodandb.wodan_varmapping AS vm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=null, EST_CARDINALITY=3.0, EST_COL_STATS={vm__1.variableid=[3.0, 3.0, 1.0], vm__1.tablename=[1.0, 1.5, -1.0], vm__1.resultgroup=[1.0, 1.5, -1.0], vm__1.primaryvar=[1.0, 1.0, -1.0], ...}, IS_DEPENDENT_SET=true}) Select(groups=[wodandb.wodan_varmapping AS vm__1], props={SELECT_CRITERIA=(vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in) AND (vm__1.variableid IN ()), IS_DEPENDENT_SET=true, IS_PUSHED=true, OUTPUT_COLS=null}) Source(groups=[wodandb.wodan_varmapping AS vm__1], props={OUTPUT_COLS=null, EST_COL_STATS={vm__1.variableid=[25.0, 25.0, 0.0], vm__1.tablename=[5.0, 12.5, -1.0], vm__1.resultgroup=[5.0, 12.5, -1.0], vm__1.primaryvar=[2.0, 2.0, -1.0], ...}, EST_CARDINALITY=25.0}) ============================================================================ EXECUTING AssignOutputElements AFTER: Project(groups=[], props={PROJECT_COLS=[Count], INTO_GROUP=#tmp_pr_retrieve_labres, OUTPUT_COLS=[Count]}) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f AS f__1], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f__1.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue], OUTPUT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f__1.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue]}) Select(groups=[f AS f__1], props={SELECT_CRITERIA=f__1.rang = 1, OUTPUT_COLS=[f__1.variableid, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue], IS_COPIED=true}) Source(groups=[f AS f__1], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1, SYMBOL_MAP={f__1.rang=ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC), f__1.variableid=v__1.variableid, f__1.SampleTime=v__1.SampleTime, f__1.EnterTime=v__1.EnterTime, f__1.varvalue=v__1.varvalue, f__1.StringValue=v__1.StringValue}, OUTPUT_COLS=[f__1.rang, f__1.variableid, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue]}) Project(groups=[v AS v__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue]}) Select(groups=[v AS v__1], props={SELECT_CRITERIA=v__1.rang = 1, OUTPUT_COLS=[v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue], IS_COPIED=true}) Source(groups=[v AS v__1], props={NESTED_COMMAND=SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v__1.rang=ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC), v__1.variableid=lcv__1.variableid_nieuw, v__1.SampleTime=lcv__1.SampleTime, v__1.EnterTime=lcv__1.EnterTime, v__1.varvalue=lcv__1.varvalue, v__1.StringValue=lcv__1.StringValue}, OUTPUT_COLS=[v__1.rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue]}) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=MERGE, JOIN_CRITERIA=[lcv__1.variableid_oud = lm__1.VariableID, vm__1.variableid = lm__1.Labogroep], LEFT_EXPRESSIONS=[lm__1.VariableID, lm__1.Labogroep], RIGHT_EXPRESSIONS=[lcv__1.variableid_oud, vm__1.variableid], NON_EQUI_JOIN_CRITERIA=[], EST_CARDINALITY=null, DEPENDENT_VALUE_SOURCE=$dsc/id106, OUTPUT_COLS=[lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=[lm__1.VariableID, lm__1.Labogroep], EST_CARDINALITY=561.0, EST_COL_STATS={lm__1.Labogroep=[24.0, 280.5, -1.0], lm__1.Abbreviation=[24.0, 280.5, -1.0], lm__1.Name=[24.0, 280.5, -1.0], lm__1.VariableID=[24.0, 280.5, -1.0], ...}}) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={OUTPUT_COLS=[lm__1.VariableID, lm__1.Labogroep], EST_COL_STATS={lm__1.Labogroep=[24.0, 280.5, -1.0], lm__1.Abbreviation=[24.0, 280.5, -1.0], lm__1.Name=[24.0, 280.5, -1.0], lm__1.VariableID=[24.0, 280.5, -1.0], ...}, EST_CARDINALITY=561.0}) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP, EST_CARDINALITY=3.0, EST_COL_STATS={lcv__1.ActorID=[1.0, 1.0, -1.0], lcv__1.ClassificationID=[1.0, 1.0, -1.0], lcv__1.EnterTime=[1.0, 1.0, -1.0], lcv__1.ExamType=[1.0, 1.0, -1.0], ...}, JOIN_CRITERIA=[], OUTPUT_COLS=[lcv__1.variableid_oud, vm__1.variableid, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 8) = 8, OUTPUT_COLS=[lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.ActorID=[1.0, 1.0, -1.0], lcv__1.ClassificationID=[1.0, 1.0, -1.0], lcv__1.EnterTime=[1.0, 1.0, -1.0], lcv__1.ExamType=[1.0, 1.0, -1.0], ...}}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 2) <> 2, OUTPUT_COLS=[lcv__1.Status, lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.ActorID=[1.0, 1.0, -1.0], lcv__1.ClassificationID=[1.0, 1.0, -1.0], lcv__1.EnterTime=[1.0, 1.0, -1.0], lcv__1.ExamType=[1.0, 1.0, -1.0], ...}}) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=[lcv__1.Status, lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], EST_CARDINALITY=8366.2, EST_COL_STATS={lcv__1.ActorID=[1.0, 4183.1, -1.0], lcv__1.ClassificationID=[1.0, 4183.1, -1.0], lcv__1.EnterTime=[1.0, 4183.1, -1.0], lcv__1.ExamType=[1.0, 4183.1, -1.0], ...}, IS_DEPENDENT_SET=true}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=(lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in) AND (lcv__1.variableid_oud IN ()), IS_DEPENDENT_SET=true, IS_PUSHED=true, OUTPUT_COLS=[lcv__1.Status, lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={OUTPUT_COLS=[lcv__1.PatientID, lcv__1.variableid_oud, lcv__1.Status, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], EST_COL_STATS={lcv__1.ActorID=[8367.0, 3.5E7, -1.0], lcv__1.ClassificationID=[8367.0, 3.5E7, -1.0], lcv__1.EnterTime=[8367.0, 3.5E7, -1.0], lcv__1.ExamType=[8367.0, 3.5E7, -1.0], ...}, EST_CARDINALITY=7.0E7}) Access(groups=[wodandb.wodan_varmapping AS vm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=[vm__1.variableid], EST_CARDINALITY=3.0, EST_COL_STATS={vm__1.variableid=[3.0, 3.0, 1.0], vm__1.tablename=[1.0, 1.5, -1.0], vm__1.resultgroup=[1.0, 1.5, -1.0], vm__1.primaryvar=[1.0, 1.0, -1.0], ...}, IS_DEPENDENT_SET=true}) Select(groups=[wodandb.wodan_varmapping AS vm__1], props={SELECT_CRITERIA=(vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in) AND (vm__1.variableid IN ()), IS_DEPENDENT_SET=true, IS_PUSHED=true, OUTPUT_COLS=[vm__1.variableid]}) Source(groups=[wodandb.wodan_varmapping AS vm__1], props={OUTPUT_COLS=[vm__1.tablename, vm__1.resultgroup, vm__1.variableid], EST_COL_STATS={vm__1.variableid=[25.0, 25.0, 0.0], vm__1.tablename=[5.0, 12.5, -1.0], vm__1.resultgroup=[5.0, 12.5, -1.0], vm__1.primaryvar=[2.0, 2.0, -1.0], ...}, EST_CARDINALITY=25.0}) ============================================================================ EXECUTING CalculateCost AFTER: Project(groups=[], props={PROJECT_COLS=[Count], INTO_GROUP=#tmp_pr_retrieve_labres, OUTPUT_COLS=[Count], EST_CARDINALITY=1.0805544, EST_COL_STATS={Count=[-1.0, -1.0, -1.0]}}) Source(groups=[#tmp_pr_retrieve_labres], props={ATOMIC_REQUEST=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1) AS f WHERE f__1.rang = 1, VIRTUAL_COMMAND=INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1) AS f WHERE f__1.rang = 1, OUTPUT_COLS=null, EST_CARDINALITY=1.0805544}) Project(groups=[f AS f__1], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f__1.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue], OUTPUT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f__1.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue], EST_CARDINALITY=1.0805544, EST_COL_STATS={izisviews.pr_retrieve_labres.patientid_in=[1.0, 1.0, 1.0], f__1.variableid=[1.0, 1.0, -1.0], izisviews.pr_retrieve_labres.resultgroup_in=[1.0, 1.0, 1.0], f__1.SampleTime=[1.0, 1.0, -1.0], ...}}) Select(groups=[f AS f__1], props={SELECT_CRITERIA=f__1.rang = 1, OUTPUT_COLS=[f__1.variableid, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue], IS_COPIED=true, EST_CARDINALITY=1.0805544, EST_COL_STATS={f__1.variableid=[1.0, 1.0, -1.0], f__1.SampleTime=[1.0, 1.0, -1.0], f__1.EnterTime=[1.0, 1.0, -1.0], f__1.varvalue=[1.0, 1.0, -1.0], ...}}) Source(groups=[f AS f__1], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1, SYMBOL_MAP={f__1.rang=ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC), f__1.variableid=v__1.variableid, f__1.SampleTime=v__1.SampleTime, f__1.EnterTime=v__1.EnterTime, f__1.varvalue=v__1.varvalue, f__1.StringValue=v__1.StringValue}, OUTPUT_COLS=[f__1.rang, f__1.variableid, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue], EST_CARDINALITY=1.7267269, EST_COL_STATS={f__1.rang=[1.5980009, 1.5980009, -1.0], f__1.variableid=[1.0, 1.0, -1.0], f__1.SampleTime=[1.0, 1.0, -1.0], f__1.EnterTime=[1.0, 1.0, -1.0], ...}}) Project(groups=[v AS v__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue], EST_CARDINALITY=1.7267269, EST_COL_STATS={ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC)=[1.5980009, 1.5980009, -1.0], v__1.variableid=[1.0, 1.0, -1.0], v__1.SampleTime=[1.0, 1.0, -1.0], v__1.EnterTime=[1.0, 1.0, -1.0], ...}}) Select(groups=[v AS v__1], props={SELECT_CRITERIA=v__1.rang = 1, OUTPUT_COLS=[v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue], IS_COPIED=true, EST_CARDINALITY=1.7267269, EST_COL_STATS={v__1.variableid=[1.0, 1.0, -1.0], v__1.SampleTime=[1.0, 1.0, -1.0], v__1.EnterTime=[1.0, 1.0, -1.0], v__1.varvalue=[1.0, 1.0, -1.0], ...}}) Source(groups=[v AS v__1], props={NESTED_COMMAND=SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v__1.rang=ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC), v__1.variableid=lcv__1.variableid_nieuw, v__1.SampleTime=lcv__1.SampleTime, v__1.EnterTime=lcv__1.EnterTime, v__1.varvalue=lcv__1.varvalue, v__1.StringValue=lcv__1.StringValue}, OUTPUT_COLS=[v__1.rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue], EST_CARDINALITY=3.990483, EST_COL_STATS={v__1.rang=[2.31101, 2.31101, -1.0], v__1.variableid=[1.0, 1.0, -1.0], v__1.SampleTime=[1.0, 1.0, -1.0], v__1.EnterTime=[1.0, 1.0, -1.0], ...}}) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], EST_CARDINALITY=3.990483, EST_COL_STATS={ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC)=[2.31101, 2.31101, -1.0], lcv__1.variableid_nieuw=[1.0, 1.0, -1.0], lcv__1.SampleTime=[1.0, 1.0, -1.0], lcv__1.EnterTime=[1.0, 1.0, -1.0], ...}}) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=MERGE, JOIN_CRITERIA=[lcv__1.variableid_oud = lm__1.VariableID, vm__1.variableid = lm__1.Labogroep], LEFT_EXPRESSIONS=[lm__1.VariableID, lm__1.Labogroep], RIGHT_EXPRESSIONS=[lcv__1.variableid_oud, vm__1.variableid], NON_EQUI_JOIN_CRITERIA=[], EST_CARDINALITY=3.990483, DEPENDENT_VALUE_SOURCE=$dsc/id106, OUTPUT_COLS=[lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], EST_COL_STATS={lcv__1.variableid_oud=[1.0, 1.0, -1.0], lcv__1.ResultID=[1.0, 1.0, -1.0], lcv__1.ResultNo=[1.0, 1.0, -1.0], lcv__1.variableid_nieuw=[1.0, 1.0, -1.0], ...}}) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=[lm__1.VariableID, lm__1.Labogroep], EST_CARDINALITY=561.0, EST_COL_STATS={lm__1.Labogroep=[24.0, 280.5, -1.0], lm__1.Abbreviation=[24.0, 280.5, -1.0], lm__1.Name=[24.0, 280.5, -1.0], lm__1.VariableID=[24.0, 280.5, -1.0], ...}}) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={OUTPUT_COLS=[lm__1.VariableID, lm__1.Labogroep], EST_COL_STATS={lm__1.Labogroep=[24.0, 280.5, -1.0], lm__1.Abbreviation=[24.0, 280.5, -1.0], lm__1.Name=[24.0, 280.5, -1.0], lm__1.VariableID=[24.0, 280.5, -1.0], ...}, EST_CARDINALITY=561.0}) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.variableid_oud=[1.0, 1.0, -1.0], vm__1.variableid=[1.0, 1.0, 1.0], lcv__1.ResultID=[1.0, 1.0, -1.0], lcv__1.ResultNo=[1.0, 1.0, -1.0], ...}, JOIN_CRITERIA=[], OUTPUT_COLS=[lcv__1.variableid_oud, vm__1.variableid, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 8) = 8, OUTPUT_COLS=[lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.variableid_oud=[1.0, 1.0, -1.0], lcv__1.ResultID=[1.0, 1.0, -1.0], lcv__1.ResultNo=[1.0, 1.0, -1.0], lcv__1.variableid_nieuw=[1.0, 1.0, -1.0], ...}}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 2) <> 2, OUTPUT_COLS=[lcv__1.Status, lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.Status=[1.0, 1.0, 0.0], lcv__1.variableid_oud=[1.0, 1.0, -1.0], lcv__1.ResultID=[1.0, 1.0, -1.0], lcv__1.ResultNo=[1.0, 1.0, -1.0], ...}}) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=[lcv__1.Status, lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], EST_CARDINALITY=4259.218, EST_COL_STATS={lcv__1.Status=[1.0, 2129.609, -1.0], lcv__1.variableid_oud=[1.0, 2129.609, -1.0], lcv__1.ResultID=[1.0, 2129.609, -1.0], lcv__1.ResultNo=[1.0, 2129.609, -1.0], ...}, IS_DEPENDENT_SET=true}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=(lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in) AND (lcv__1.variableid_oud IN ()), IS_DEPENDENT_SET=true, IS_PUSHED=true, OUTPUT_COLS=[lcv__1.Status, lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], EST_CARDINALITY=4259.218, EST_COL_STATS={lcv__1.Status=[1.0, 2129.609, -1.0], lcv__1.variableid_oud=[1.0, 2129.609, -1.0], lcv__1.ResultID=[1.0, 2129.609, -1.0], lcv__1.ResultNo=[1.0, 2129.609, -1.0], ...}}) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={OUTPUT_COLS=[lcv__1.PatientID, lcv__1.variableid_oud, lcv__1.Status, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], EST_COL_STATS={lcv__1.ActorID=[8367.0, 3.5E7, -1.0], lcv__1.ClassificationID=[8367.0, 3.5E7, -1.0], lcv__1.EnterTime=[8367.0, 3.5E7, -1.0], lcv__1.ExamType=[8367.0, 3.5E7, -1.0], ...}, EST_CARDINALITY=7.0E7}) Access(groups=[wodandb.wodan_varmapping AS vm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=[vm__1.variableid], EST_CARDINALITY=1.0, EST_COL_STATS={vm__1.variableid=[1.0, 1.0, 1.0]}, IS_DEPENDENT_SET=true}) Select(groups=[wodandb.wodan_varmapping AS vm__1], props={SELECT_CRITERIA=(vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in) AND (vm__1.variableid IN ()), IS_DEPENDENT_SET=true, IS_PUSHED=true, OUTPUT_COLS=[vm__1.variableid], EST_CARDINALITY=1.0, EST_COL_STATS={vm__1.variableid=[1.0, 1.0, 1.0]}}) Source(groups=[wodandb.wodan_varmapping AS vm__1], props={OUTPUT_COLS=[vm__1.tablename, vm__1.resultgroup, vm__1.variableid], EST_COL_STATS={vm__1.variableid=[25.0, 25.0, 0.0], vm__1.tablename=[5.0, 12.5, -1.0], vm__1.resultgroup=[5.0, 12.5, -1.0], vm__1.primaryvar=[2.0, 2.0, -1.0], ...}, EST_CARDINALITY=25.0}) ============================================================================ EXECUTING ImplementJoinStrategy AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f AS f__1]) Select(groups=[f AS f__1]) Source(groups=[f AS f__1]) Project(groups=[v AS v__1]) Select(groups=[v AS v__1]) Source(groups=[v AS v__1]) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=ENHANCED_SORT, JOIN_CRITERIA=[lcv__1.variableid_oud = lm__1.VariableID, vm__1.variableid = lm__1.Labogroep], LEFT_EXPRESSIONS=[lm__1.VariableID, lm__1.Labogroep], RIGHT_EXPRESSIONS=[lcv__1.variableid_oud, vm__1.variableid], NON_EQUI_JOIN_CRITERIA=[], EST_CARDINALITY=3.990483, DEPENDENT_VALUE_SOURCE=$dsc/id106, OUTPUT_COLS=[lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], EST_COL_STATS={lcv__1.variableid_oud=[1.0, 1.0, -1.0], lcv__1.ResultID=[1.0, 1.0, -1.0], lcv__1.ResultNo=[1.0, 1.0, -1.0], lcv__1.variableid_nieuw=[1.0, 1.0, -1.0], ...}, SORT_LEFT=SORT, SORT_RIGHT=SORT}) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=[lm__1.VariableID, lm__1.Labogroep], EST_CARDINALITY=561.0, EST_COL_STATS={lm__1.Labogroep=[24.0, 280.5, -1.0], lm__1.Abbreviation=[24.0, 280.5, -1.0], lm__1.Name=[24.0, 280.5, -1.0], lm__1.VariableID=[24.0, 280.5, -1.0], ...}}) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={OUTPUT_COLS=[lm__1.VariableID, lm__1.Labogroep], EST_COL_STATS={lm__1.Labogroep=[24.0, 280.5, -1.0], lm__1.Abbreviation=[24.0, 280.5, -1.0], lm__1.Name=[24.0, 280.5, -1.0], lm__1.VariableID=[24.0, 280.5, -1.0], ...}, EST_CARDINALITY=561.0}) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.variableid_oud=[1.0, 1.0, -1.0], vm__1.variableid=[1.0, 1.0, 1.0], lcv__1.ResultID=[1.0, 1.0, -1.0], lcv__1.ResultNo=[1.0, 1.0, -1.0], ...}, JOIN_CRITERIA=[], OUTPUT_COLS=[lcv__1.variableid_oud, vm__1.variableid, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 8) = 8, OUTPUT_COLS=[lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.variableid_oud=[1.0, 1.0, -1.0], lcv__1.ResultID=[1.0, 1.0, -1.0], lcv__1.ResultNo=[1.0, 1.0, -1.0], lcv__1.variableid_nieuw=[1.0, 1.0, -1.0], ...}}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=bitand(convert(lcv__1.Status, integer), 2) <> 2, OUTPUT_COLS=[lcv__1.Status, lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.Status=[1.0, 1.0, 0.0], lcv__1.variableid_oud=[1.0, 1.0, -1.0], lcv__1.ResultID=[1.0, 1.0, -1.0], lcv__1.ResultNo=[1.0, 1.0, -1.0], ...}}) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=[lcv__1.Status, lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], EST_CARDINALITY=4259.218, EST_COL_STATS={lcv__1.Status=[1.0, 2129.609, -1.0], lcv__1.variableid_oud=[1.0, 2129.609, -1.0], lcv__1.ResultID=[1.0, 2129.609, -1.0], lcv__1.ResultNo=[1.0, 2129.609, -1.0], ...}, IS_DEPENDENT_SET=true}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=(lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in) AND (lcv__1.variableid_oud IN ()), IS_DEPENDENT_SET=true, IS_PUSHED=true, OUTPUT_COLS=[lcv__1.Status, lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], EST_CARDINALITY=4259.218, EST_COL_STATS={lcv__1.Status=[1.0, 2129.609, -1.0], lcv__1.variableid_oud=[1.0, 2129.609, -1.0], lcv__1.ResultID=[1.0, 2129.609, -1.0], lcv__1.ResultNo=[1.0, 2129.609, -1.0], ...}}) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={OUTPUT_COLS=[lcv__1.PatientID, lcv__1.variableid_oud, lcv__1.Status, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], EST_COL_STATS={lcv__1.ActorID=[8367.0, 3.5E7, -1.0], lcv__1.ClassificationID=[8367.0, 3.5E7, -1.0], lcv__1.EnterTime=[8367.0, 3.5E7, -1.0], lcv__1.ExamType=[8367.0, 3.5E7, -1.0], ...}, EST_CARDINALITY=7.0E7}) Access(groups=[wodandb.wodan_varmapping AS vm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=[vm__1.variableid], EST_CARDINALITY=1.0, EST_COL_STATS={vm__1.variableid=[1.0, 1.0, 1.0]}, IS_DEPENDENT_SET=true}) Select(groups=[wodandb.wodan_varmapping AS vm__1], props={SELECT_CRITERIA=(vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in) AND (vm__1.variableid IN ()), IS_DEPENDENT_SET=true, IS_PUSHED=true, OUTPUT_COLS=[vm__1.variableid], EST_CARDINALITY=1.0, EST_COL_STATS={vm__1.variableid=[1.0, 1.0, 1.0]}}) Source(groups=[wodandb.wodan_varmapping AS vm__1], props={OUTPUT_COLS=[vm__1.tablename, vm__1.resultgroup, vm__1.variableid], EST_COL_STATS={vm__1.variableid=[25.0, 25.0, 0.0], vm__1.tablename=[5.0, 12.5, -1.0], vm__1.resultgroup=[5.0, 12.5, -1.0], vm__1.primaryvar=[2.0, 2.0, -1.0], ...}, EST_CARDINALITY=25.0}) ============================================================================ EXECUTING MergeCriteria AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f AS f__1]) Select(groups=[f AS f__1], props={SELECT_CRITERIA=f__1.rang = 1, OUTPUT_COLS=[f__1.variableid, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue], IS_COPIED=true, EST_CARDINALITY=1.0805544, EST_COL_STATS={f__1.variableid=[1.0, 1.0, -1.0], f__1.SampleTime=[1.0, 1.0, -1.0], f__1.EnterTime=[1.0, 1.0, -1.0], f__1.varvalue=[1.0, 1.0, -1.0], ...}}) Source(groups=[f AS f__1], props={NESTED_COMMAND=SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1, SYMBOL_MAP={f__1.rang=ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC), f__1.variableid=v__1.variableid, f__1.SampleTime=v__1.SampleTime, f__1.EnterTime=v__1.EnterTime, f__1.varvalue=v__1.varvalue, f__1.StringValue=v__1.StringValue}, OUTPUT_COLS=[f__1.rang, f__1.variableid, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue], EST_CARDINALITY=1.7267269, EST_COL_STATS={f__1.rang=[1.5980009, 1.5980009, -1.0], f__1.variableid=[1.0, 1.0, -1.0], f__1.SampleTime=[1.0, 1.0, -1.0], f__1.EnterTime=[1.0, 1.0, -1.0], ...}}) Project(groups=[v AS v__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue], EST_CARDINALITY=1.7267269, EST_COL_STATS={ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC)=[1.5980009, 1.5980009, -1.0], v__1.variableid=[1.0, 1.0, -1.0], v__1.SampleTime=[1.0, 1.0, -1.0], v__1.EnterTime=[1.0, 1.0, -1.0], ...}}) Select(groups=[v AS v__1], props={SELECT_CRITERIA=v__1.rang = 1, OUTPUT_COLS=[v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue], IS_COPIED=true, EST_CARDINALITY=1.7267269, EST_COL_STATS={v__1.variableid=[1.0, 1.0, -1.0], v__1.SampleTime=[1.0, 1.0, -1.0], v__1.EnterTime=[1.0, 1.0, -1.0], v__1.varvalue=[1.0, 1.0, -1.0], ...}}) Source(groups=[v AS v__1], props={NESTED_COMMAND=SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={v__1.rang=ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC), v__1.variableid=lcv__1.variableid_nieuw, v__1.SampleTime=lcv__1.SampleTime, v__1.EnterTime=lcv__1.EnterTime, v__1.varvalue=lcv__1.varvalue, v__1.StringValue=lcv__1.StringValue}, OUTPUT_COLS=[v__1.rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue], EST_CARDINALITY=3.990483, EST_COL_STATS={v__1.rang=[2.31101, 2.31101, -1.0], v__1.variableid=[1.0, 1.0, -1.0], v__1.SampleTime=[1.0, 1.0, -1.0], v__1.EnterTime=[1.0, 1.0, -1.0], ...}}) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], EST_CARDINALITY=3.990483, EST_COL_STATS={ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC)=[2.31101, 2.31101, -1.0], lcv__1.variableid_nieuw=[1.0, 1.0, -1.0], lcv__1.SampleTime=[1.0, 1.0, -1.0], lcv__1.EnterTime=[1.0, 1.0, -1.0], ...}}) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=ENHANCED_SORT, JOIN_CRITERIA=[lcv__1.variableid_oud = lm__1.VariableID, vm__1.variableid = lm__1.Labogroep], LEFT_EXPRESSIONS=[lm__1.VariableID, lm__1.Labogroep], RIGHT_EXPRESSIONS=[lcv__1.variableid_oud, vm__1.variableid], NON_EQUI_JOIN_CRITERIA=[], EST_CARDINALITY=3.990483, DEPENDENT_VALUE_SOURCE=$dsc/id106, OUTPUT_COLS=[lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], EST_COL_STATS={lcv__1.variableid_oud=[1.0, 1.0, -1.0], lcv__1.ResultID=[1.0, 1.0, -1.0], lcv__1.ResultNo=[1.0, 1.0, -1.0], lcv__1.variableid_nieuw=[1.0, 1.0, -1.0], ...}, SORT_LEFT=SORT, SORT_RIGHT=SORT}) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=[lm__1.VariableID, lm__1.Labogroep], EST_CARDINALITY=561.0, EST_COL_STATS={lm__1.Labogroep=[24.0, 280.5, -1.0], lm__1.Abbreviation=[24.0, 280.5, -1.0], lm__1.Name=[24.0, 280.5, -1.0], lm__1.VariableID=[24.0, 280.5, -1.0], ...}}) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={OUTPUT_COLS=[lm__1.VariableID, lm__1.Labogroep], EST_COL_STATS={lm__1.Labogroep=[24.0, 280.5, -1.0], lm__1.Abbreviation=[24.0, 280.5, -1.0], lm__1.Name=[24.0, 280.5, -1.0], lm__1.VariableID=[24.0, 280.5, -1.0], ...}, EST_CARDINALITY=561.0}) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.variableid_oud=[1.0, 1.0, -1.0], vm__1.variableid=[1.0, 1.0, 1.0], lcv__1.ResultID=[1.0, 1.0, -1.0], lcv__1.ResultNo=[1.0, 1.0, -1.0], ...}, JOIN_CRITERIA=[], OUTPUT_COLS=[lcv__1.variableid_oud, vm__1.variableid, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=(bitand(convert(lcv__1.Status, integer), 2) <> 2) AND (bitand(convert(lcv__1.Status, integer), 8) = 8), OUTPUT_COLS=[lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], IS_COPIED=true, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.variableid_oud=[1.0, 1.0, -1.0], lcv__1.ResultID=[1.0, 1.0, -1.0], lcv__1.ResultNo=[1.0, 1.0, -1.0], lcv__1.variableid_nieuw=[1.0, 1.0, -1.0], ...}}) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=[lcv__1.Status, lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], EST_CARDINALITY=4259.218, EST_COL_STATS={lcv__1.Status=[1.0, 2129.609, -1.0], lcv__1.variableid_oud=[1.0, 2129.609, -1.0], lcv__1.ResultID=[1.0, 2129.609, -1.0], lcv__1.ResultNo=[1.0, 2129.609, -1.0], ...}, IS_DEPENDENT_SET=true}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SELECT_CRITERIA=(lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in) AND (lcv__1.variableid_oud IN ()), IS_DEPENDENT_SET=true, IS_PUSHED=true, OUTPUT_COLS=[lcv__1.Status, lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], EST_CARDINALITY=4259.218, EST_COL_STATS={lcv__1.Status=[1.0, 2129.609, -1.0], lcv__1.variableid_oud=[1.0, 2129.609, -1.0], lcv__1.ResultID=[1.0, 2129.609, -1.0], lcv__1.ResultNo=[1.0, 2129.609, -1.0], ...}}) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={OUTPUT_COLS=[lcv__1.PatientID, lcv__1.variableid_oud, lcv__1.Status, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], EST_COL_STATS={lcv__1.ActorID=[8367.0, 3.5E7, -1.0], lcv__1.ClassificationID=[8367.0, 3.5E7, -1.0], lcv__1.EnterTime=[8367.0, 3.5E7, -1.0], lcv__1.ExamType=[8367.0, 3.5E7, -1.0], ...}, EST_CARDINALITY=7.0E7}) Access(groups=[wodandb.wodan_varmapping AS vm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=[vm__1.variableid], EST_CARDINALITY=1.0, EST_COL_STATS={vm__1.variableid=[1.0, 1.0, 1.0]}, IS_DEPENDENT_SET=true}) Select(groups=[wodandb.wodan_varmapping AS vm__1], props={SELECT_CRITERIA=(vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in) AND (vm__1.variableid IN ()), IS_DEPENDENT_SET=true, IS_PUSHED=true, OUTPUT_COLS=[vm__1.variableid], EST_CARDINALITY=1.0, EST_COL_STATS={vm__1.variableid=[1.0, 1.0, 1.0]}}) Source(groups=[wodandb.wodan_varmapping AS vm__1], props={OUTPUT_COLS=[vm__1.tablename, vm__1.resultgroup, vm__1.variableid], EST_COL_STATS={vm__1.variableid=[25.0, 25.0, 0.0], vm__1.tablename=[5.0, 12.5, -1.0], vm__1.resultgroup=[5.0, 12.5, -1.0], vm__1.primaryvar=[2.0, 2.0, -1.0], ...}, EST_CARDINALITY=25.0}) ============================================================================ EXECUTING PlanSorts AFTER: Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f AS f__1]) Select(groups=[f AS f__1]) Source(groups=[f AS f__1]) Project(groups=[v AS v__1]) Select(groups=[v AS v__1]) Source(groups=[v AS v__1]) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=ENHANCED_SORT, JOIN_CRITERIA=[lcv__1.variableid_oud = lm__1.VariableID, vm__1.variableid = lm__1.Labogroep], LEFT_EXPRESSIONS=[lm__1.VariableID, lm__1.Labogroep], RIGHT_EXPRESSIONS=[lcv__1.variableid_oud, vm__1.variableid], NON_EQUI_JOIN_CRITERIA=[], EST_CARDINALITY=3.990483, DEPENDENT_VALUE_SOURCE=$dsc/id106, OUTPUT_COLS=[lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], EST_COL_STATS={lcv__1.variableid_oud=[1.0, 1.0, -1.0], lcv__1.ResultID=[1.0, 1.0, -1.0], lcv__1.ResultNo=[1.0, 1.0, -1.0], lcv__1.variableid_nieuw=[1.0, 1.0, -1.0], ...}, SORT_LEFT=SORT, SORT_RIGHT=SORT}) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) Source(groups=[iziswh.wh_U_P_LabMapping AS lm__1]) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1], props={JOIN_TYPE=CROSS JOIN, JOIN_STRATEGY=NESTED_LOOP, EST_CARDINALITY=1.0, EST_COL_STATS={lcv__1.variableid_oud=[1.0, 1.0, -1.0], vm__1.variableid=[1.0, 1.0, 1.0], lcv__1.ResultID=[1.0, 1.0, -1.0], lcv__1.ResultNo=[1.0, 1.0, -1.0], ...}, JOIN_CRITERIA=[], OUTPUT_COLS=[lcv__1.variableid_oud, vm__1.variableid, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue]}) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Source(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Access(groups=[wodandb.wodan_varmapping AS vm__1]) Select(groups=[wodandb.wodan_varmapping AS vm__1]) Source(groups=[wodandb.wodan_varmapping AS vm__1]) ============================================================================ EXECUTING CollapseSource AFTER: Project(groups=[], props={PROJECT_COLS=[Count], INTO_GROUP=#tmp_pr_retrieve_labres, OUTPUT_COLS=[Count], EST_CARDINALITY=1.0805544, EST_COL_STATS={Count=[-1.0, -1.0, -1.0]}}) Source(groups=[#tmp_pr_retrieve_labres]) Project(groups=[f AS f__1], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f__1.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue], OUTPUT_COLS=[izisviews.pr_retrieve_labres.patientid_in, f__1.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue], EST_CARDINALITY=1.0805544, EST_COL_STATS={izisviews.pr_retrieve_labres.patientid_in=[1.0, 1.0, 1.0], f__1.variableid=[1.0, 1.0, -1.0], izisviews.pr_retrieve_labres.resultgroup_in=[1.0, 1.0, 1.0], f__1.SampleTime=[1.0, 1.0, -1.0], ...}}) Select(groups=[f AS f__1]) Source(groups=[f AS f__1]) Project(groups=[v AS v__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue], EST_CARDINALITY=1.7267269, EST_COL_STATS={ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC)=[1.5980009, 1.5980009, -1.0], v__1.variableid=[1.0, 1.0, -1.0], v__1.SampleTime=[1.0, 1.0, -1.0], v__1.EnterTime=[1.0, 1.0, -1.0], ...}}) Select(groups=[v AS v__1]) Source(groups=[v AS v__1]) Project(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={PROJECT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], HAS_WINDOW_FUNCTIONS=true, OUTPUT_COLS=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], EST_CARDINALITY=3.990483, EST_COL_STATS={ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC)=[2.31101, 2.31101, -1.0], lcv__1.variableid_nieuw=[1.0, 1.0, -1.0], lcv__1.SampleTime=[1.0, 1.0, -1.0], lcv__1.EnterTime=[1.0, 1.0, -1.0], ...}}) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1, iziswh.wh_U_P_LabMapping AS lm__1]) Access(groups=[iziswh.wh_U_P_LabMapping AS lm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=[lm__1.VariableID, lm__1.Labogroep], EST_CARDINALITY=561.0, EST_COL_STATS={lm__1.Labogroep=[24.0, 280.5, -1.0], lm__1.Abbreviation=[24.0, 280.5, -1.0], lm__1.Name=[24.0, 280.5, -1.0], lm__1.VariableID=[24.0, 280.5, -1.0], ...}, ATOMIC_REQUEST=SELECT lm__1.VariableID, lm__1.Labogroep FROM iziswh.wh_U_P_LabMapping AS lm__1}) Join(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1, wodandb.wodan_varmapping AS vm__1]) Select(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1]) Access(groups=[iziswh.wh_U_PV_LabCorrectValues AS lcv__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=iziswh, nameInSource=null, uuid=mmuuid:43611995-84e0-4550-be48-cdeb054d06ac, OUTPUT_COLS=[lcv__1.Status, lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue], EST_CARDINALITY=4259.218, EST_COL_STATS={lcv__1.Status=[1.0, 2129.609, -1.0], lcv__1.variableid_oud=[1.0, 2129.609, -1.0], lcv__1.ResultID=[1.0, 2129.609, -1.0], lcv__1.ResultNo=[1.0, 2129.609, -1.0], ...}, IS_DEPENDENT_SET=true, ATOMIC_REQUEST=SELECT lcv__1.Status, lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue FROM iziswh.wh_U_PV_LabCorrectValues AS lcv__1 WHERE (lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in) AND (lcv__1.variableid_oud IN ())}) Access(groups=[wodandb.wodan_varmapping AS vm__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=wodandb, nameInSource=null, uuid=mmuuid:e7655974-cdf1-47e0-b28d-dd086c925302, OUTPUT_COLS=[vm__1.variableid], EST_CARDINALITY=1.0, EST_COL_STATS={vm__1.variableid=[1.0, 1.0, 1.0]}, IS_DEPENDENT_SET=true, ATOMIC_REQUEST=SELECT vm__1.variableid FROM wodandb.wodan_varmapping AS vm__1 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in) AND (vm__1.variableid IN ())}) ============================================================================ CONVERTING PLAN TREE TO PROCESS TREE PROCESS PLAN = ProjectIntoNode(17) output=[Count] #tmp_pr_retrieve_labres ProjectNode(18) output=[izisviews.pr_retrieve_labres.patientid_in, f__1.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue] [izisviews.pr_retrieve_labres.patientid_in, f__1.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue] SelectNode(19) output=[f__1.variableid, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue] f__1.rang = 1 ProjectNode(20) output=[f__1.rang, f__1.variableid, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue] [ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue] WindowFunctionProjectNode(21) output=[ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC), v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue] SelectNode(22) output=[v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue] v__1.rang = 1 ProjectNode(23) output=[v__1.rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue] [ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue] WindowFunctionProjectNode(24) output=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC), lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue] JoinNode(25) [Dependent] [ENHANCED SORT JOIN (SORT/SORT)] [INNER JOIN] criteria=[lm__1.VariableID=lcv__1.variableid_oud, lm__1.Labogroep=vm__1.variableid] output=[lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue] AccessNode(26) output=[lm__1.VariableID, lm__1.Labogroep] SELECT g_0.VariableID, g_0.Labogroep FROM iziswh.wh_U_P_LabMapping AS g_0 JoinNode(27) [NESTED LOOP JOIN] [CROSS JOIN] output=[lcv__1.variableid_oud, vm__1.variableid, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue] SelectNode(28) output=[lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue] (bitand(convert(lcv__1.Status, integer), 2) <> 2) AND (bitand(convert(lcv__1.Status, integer), 8) = 8) DependentAccessNode(29) output=[lcv__1.Status, lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue] SELECT g_0.Status, g_0.variableid_oud, g_0.ResultID, g_0.ResultNo, g_0.variableid_nieuw, g_0.SampleTime, g_0.EnterTime, g_0.varvalue, g_0.StringValue FROM iziswh.wh_U_PV_LabCorrectValues AS g_0 WHERE (g_0.PatientID = izisviews.pr_retrieve_labres.patientid_in) AND (g_0.variableid_oud IN ()) DependentAccessNode(30) output=[vm__1.variableid] SELECT g_0.variableid FROM wodandb.wodan_varmapping AS g_0 WHERE (g_0.tablename = 'la') AND (g_0.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in) AND (g_0.variableid IN ()) ============================================================================ ---------------------------------------------------------------------------- OPTIMIZATION COMPLETE: PROCESSOR PLAN: ProjectIntoNode(17) output=[Count] #tmp_pr_retrieve_labres ProjectNode(18) output=[izisviews.pr_retrieve_labres.patientid_in, f__1.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue] [izisviews.pr_retrieve_labres.patientid_in, f__1.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue] SelectNode(19) output=[f__1.variableid, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue] f__1.rang = 1 ProjectNode(20) output=[f__1.rang, f__1.variableid, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue] [ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue] WindowFunctionProjectNode(21) output=[ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC), v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue] SelectNode(22) output=[v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue] v__1.rang = 1 ProjectNode(23) output=[v__1.rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue] [ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue] WindowFunctionProjectNode(24) output=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC), lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue] JoinNode(25) [Dependent] [ENHANCED SORT JOIN (SORT/SORT)] [INNER JOIN] criteria=[lm__1.VariableID=lcv__1.variableid_oud, lm__1.Labogroep=vm__1.variableid] output=[lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue] AccessNode(26) output=[lm__1.VariableID, lm__1.Labogroep] SELECT g_0.VariableID, g_0.Labogroep FROM iziswh.wh_U_P_LabMapping AS g_0 JoinNode(27) [NESTED LOOP JOIN] [CROSS JOIN] output=[lcv__1.variableid_oud, vm__1.variableid, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue] SelectNode(28) output=[lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue] (bitand(convert(lcv__1.Status, integer), 2) <> 2) AND (bitand(convert(lcv__1.Status, integer), 8) = 8) DependentAccessNode(29) output=[lcv__1.Status, lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue] SELECT g_0.Status, g_0.variableid_oud, g_0.ResultID, g_0.ResultNo, g_0.variableid_nieuw, g_0.SampleTime, g_0.EnterTime, g_0.varvalue, g_0.StringValue FROM iziswh.wh_U_PV_LabCorrectValues AS g_0 WHERE (g_0.PatientID = izisviews.pr_retrieve_labres.patientid_in) AND (g_0.variableid_oud IN ()) DependentAccessNode(30) output=[vm__1.variableid] SELECT g_0.variableid FROM wodandb.wodan_varmapping AS g_0 WHERE (g_0.tablename = 'la') AND (g_0.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in) AND (g_0.variableid IN ()) ============================================================================ ---------------------------------------------------------------------------- OPTIMIZE: SELECT #tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue FROM #tmp_pr_retrieve_labres ---------------------------------------------------------------------------- GENERATE CANONICAL: SELECT #tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue FROM #tmp_pr_retrieve_labres CANONICAL PLAN: Project(groups=[#tmp_pr_retrieve_labres], props={PROJECT_COLS=[#tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue]}) Source(groups=[#tmp_pr_retrieve_labres]) ============================================================================ EXECUTING PlaceAccess AFTER: Project(groups=[#tmp_pr_retrieve_labres], props={PROJECT_COLS=[#tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue]}) Access(groups=[#tmp_pr_retrieve_labres], props={SOURCE_HINT=null, MODEL_ID=__TEMP__}) Source(groups=[#tmp_pr_retrieve_labres]) ============================================================================ EXECUTING RaiseAccess AFTER: Access(groups=[#tmp_pr_retrieve_labres], props={SOURCE_HINT=null, MODEL_ID=__TEMP__}) Project(groups=[#tmp_pr_retrieve_labres], props={PROJECT_COLS=[#tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue]}) Source(groups=[#tmp_pr_retrieve_labres]) ============================================================================ EXECUTING AssignOutputElements AFTER: Access(groups=[#tmp_pr_retrieve_labres], props={SOURCE_HINT=null, MODEL_ID=__TEMP__, OUTPUT_COLS=[#tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue]}) Project(groups=[#tmp_pr_retrieve_labres], props={PROJECT_COLS=[#tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue], OUTPUT_COLS=[#tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue]}) Source(groups=[#tmp_pr_retrieve_labres], props={OUTPUT_COLS=[#tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue]}) ============================================================================ EXECUTING CalculateCost AFTER: Access(groups=[#tmp_pr_retrieve_labres], props={SOURCE_HINT=null, MODEL_ID=__TEMP__, OUTPUT_COLS=[#tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue], EST_CARDINALITY=256.0, EST_COL_STATS={#tmp_pr_retrieve_labres.patientid=[16.0, 128.0, -1.0], #tmp_pr_retrieve_labres.variableid=[16.0, 128.0, -1.0], #tmp_pr_retrieve_labres.resultgroup=[16.0, 128.0, -1.0], #tmp_pr_retrieve_labres.datetime=[16.0, 128.0, -1.0], ...}}) Project(groups=[#tmp_pr_retrieve_labres], props={PROJECT_COLS=[#tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue], OUTPUT_COLS=[#tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue], EST_CARDINALITY=256.0, EST_COL_STATS={#tmp_pr_retrieve_labres.patientid=[16.0, 128.0, -1.0], #tmp_pr_retrieve_labres.variableid=[16.0, 128.0, -1.0], #tmp_pr_retrieve_labres.resultgroup=[16.0, 128.0, -1.0], #tmp_pr_retrieve_labres.datetime=[16.0, 128.0, -1.0], ...}}) Source(groups=[#tmp_pr_retrieve_labres], props={OUTPUT_COLS=[#tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue], EST_COL_STATS={#tmp_pr_retrieve_labres.patientid=[16.0, 128.0, -1.0], #tmp_pr_retrieve_labres.variableid=[16.0, 128.0, -1.0], #tmp_pr_retrieve_labres.resultgroup=[16.0, 128.0, -1.0], #tmp_pr_retrieve_labres.datetime=[16.0, 128.0, -1.0], ...}, EST_CARDINALITY=256.0}) ============================================================================ EXECUTING PlanSorts AFTER: Access(groups=[#tmp_pr_retrieve_labres]) Project(groups=[#tmp_pr_retrieve_labres]) Source(groups=[#tmp_pr_retrieve_labres]) ============================================================================ EXECUTING CollapseSource AFTER: Access(groups=[#tmp_pr_retrieve_labres], props={SOURCE_HINT=null, MODEL_ID=__TEMP__, OUTPUT_COLS=[#tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue], EST_CARDINALITY=256.0, EST_COL_STATS={#tmp_pr_retrieve_labres.patientid=[16.0, 128.0, -1.0], #tmp_pr_retrieve_labres.variableid=[16.0, 128.0, -1.0], #tmp_pr_retrieve_labres.resultgroup=[16.0, 128.0, -1.0], #tmp_pr_retrieve_labres.datetime=[16.0, 128.0, -1.0], ...}, ATOMIC_REQUEST=SELECT #tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue FROM #tmp_pr_retrieve_labres}) ============================================================================ CONVERTING PLAN TREE TO PROCESS TREE PROCESS PLAN = AccessNode(31) output=[#tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue] SELECT #tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue FROM #tmp_pr_retrieve_labres ============================================================================ ---------------------------------------------------------------------------- OPTIMIZATION COMPLETE: PROCESSOR PLAN: AccessNode(31) output=[#tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue] SELECT #tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue FROM #tmp_pr_retrieve_labres ============================================================================ ---------------------------------------------------------------------------- OPTIMIZE: DROP TABLE #tmp_pr_retrieve_labres ---------------------------------------------------------------------------- GENERATE CANONICAL: DROP TABLE #tmp_pr_retrieve_labres CANONICAL PLAN: Project(groups=[], props={PROJECT_COLS=[Count]}) Source(groups=[#tmp_pr_retrieve_labres], props={ATOMIC_REQUEST=DROP TABLE #tmp_pr_retrieve_labres, VIRTUAL_COMMAND=DROP TABLE #tmp_pr_retrieve_labres}) ============================================================================ EXECUTING PlaceAccess AFTER: Project(groups=[], props={PROJECT_COLS=[Count]}) Access(groups=[#tmp_pr_retrieve_labres], props={SOURCE_HINT=null, MODEL_ID=__TEMP__}) Source(groups=[#tmp_pr_retrieve_labres], props={ATOMIC_REQUEST=DROP TABLE #tmp_pr_retrieve_labres, VIRTUAL_COMMAND=DROP TABLE #tmp_pr_retrieve_labres}) ============================================================================ EXECUTING RaiseAccess AFTER: Access(groups=[#tmp_pr_retrieve_labres], props={SOURCE_HINT=null, MODEL_ID=__TEMP__}) Project(groups=[], props={PROJECT_COLS=[Count]}) Source(groups=[#tmp_pr_retrieve_labres], props={ATOMIC_REQUEST=DROP TABLE #tmp_pr_retrieve_labres, VIRTUAL_COMMAND=DROP TABLE #tmp_pr_retrieve_labres}) ============================================================================ EXECUTING AssignOutputElements AFTER: Access(groups=[#tmp_pr_retrieve_labres], props={SOURCE_HINT=null, MODEL_ID=__TEMP__, OUTPUT_COLS=[Count]}) Project(groups=[], props={PROJECT_COLS=[Count], OUTPUT_COLS=[Count]}) Source(groups=[#tmp_pr_retrieve_labres], props={ATOMIC_REQUEST=DROP TABLE #tmp_pr_retrieve_labres, VIRTUAL_COMMAND=DROP TABLE #tmp_pr_retrieve_labres, OUTPUT_COLS=[Count]}) ============================================================================ EXECUTING CalculateCost AFTER: Access(groups=[#tmp_pr_retrieve_labres], props={SOURCE_HINT=null, MODEL_ID=__TEMP__, OUTPUT_COLS=[Count], EST_CARDINALITY=256.0, EST_COL_STATS={Count=[-1.0, -1.0, -1.0]}}) Project(groups=[], props={PROJECT_COLS=[Count], OUTPUT_COLS=[Count], EST_CARDINALITY=256.0, EST_COL_STATS={Count=[-1.0, -1.0, -1.0]}}) Source(groups=[#tmp_pr_retrieve_labres], props={ATOMIC_REQUEST=DROP TABLE #tmp_pr_retrieve_labres, VIRTUAL_COMMAND=DROP TABLE #tmp_pr_retrieve_labres, OUTPUT_COLS=[Count], EST_CARDINALITY=256.0}) ============================================================================ EXECUTING PlanSorts AFTER: Access(groups=[#tmp_pr_retrieve_labres]) Project(groups=[]) Source(groups=[#tmp_pr_retrieve_labres]) ============================================================================ EXECUTING CollapseSource AFTER: Access(groups=[#tmp_pr_retrieve_labres], props={SOURCE_HINT=null, MODEL_ID=__TEMP__, OUTPUT_COLS=[Count], EST_CARDINALITY=256.0, EST_COL_STATS={Count=[-1.0, -1.0, -1.0]}, ATOMIC_REQUEST=DROP TABLE #tmp_pr_retrieve_labres}) ============================================================================ CONVERTING PLAN TREE TO PROCESS TREE PROCESS PLAN = AccessNode(32) output=[Count] DROP TABLE #tmp_pr_retrieve_labres ============================================================================ ---------------------------------------------------------------------------- OPTIMIZATION COMPLETE: PROCESSOR PLAN: AccessNode(32) output=[Count] DROP TABLE #tmp_pr_retrieve_labres ============================================================================ COMMAND STATEMENT: CREATE LOCAL TEMPORARY TABLE #tmp_pr_retrieve_labres (patientid integer NOT NULL, variableid integer NOT NULL, resultgroup string NOT NULL, datetime timestamp NOT NULL, entertime timestamp NOT NULL, varvalue float, stringvalue string, PRIMARY KEY(patientid, variableid, datetime)); STATEMENT COMMAND PROCESS PLAN: AccessNode(2) output=[Count] CREATE LOCAL TEMPORARY TABLE #tmp_pr_retrieve_labres (patientid integer NOT NULL, variableid integer NOT NULL, resultgroup string NOT NULL, datetime timestamp NOT NULL, entertime timestamp NOT NULL, varvalue float, stringvalue string, PRIMARY KEY(patientid, variableid, datetime)) COMMAND STATEMENT: INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1; STATEMENT COMMAND PROCESS PLAN: ProjectIntoNode(3) output=[Count] #tmp_pr_retrieve_labres ProjectNode(4) output=[izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue] [izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue] SelectNode(5) output=[f.variableid, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue] f.rang = 1 ProjectNode(6) output=[f.rang, f.variableid, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue] [ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue] WindowFunctionProjectNode(7) output=[ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC), v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue] SelectNode(8) output=[v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue] v.rang = 1 ProjectNode(9) output=[v.rang, v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue] [ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang, lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue] WindowFunctionProjectNode(10) output=[ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC), lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue] JoinNode(11) [Dependent] [ENHANCED SORT JOIN (SORT/SORT)] [INNER JOIN] criteria=[lcv.variableid_oud=lm.VariableID, vm.variableid=lm.Labogroep] output=[lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue] JoinNode(12) [NESTED LOOP JOIN] [CROSS JOIN] output=[lcv.variableid_oud, vm.variableid, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue] SelectNode(13) output=[lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue] (bitand(convert(lcv.Status, integer), 2) <> 2) AND (bitand(convert(lcv.Status, integer), 8) = 8) AccessNode(14) output=[lcv.Status, lcv.variableid_oud, lcv.ResultID, lcv.ResultNo, lcv.variableid_nieuw, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue] SELECT g_0.Status, g_0.variableid_oud, g_0.ResultID, g_0.ResultNo, g_0.variableid_nieuw, g_0.SampleTime, g_0.EnterTime, g_0.varvalue, g_0.StringValue FROM izisprod.prod_U_PV_LabCorrectValues AS g_0 WHERE g_0.PatientID = izisviews.pr_retrieve_labres.patientid_in AccessNode(15) output=[vm.variableid] SELECT g_0.variableid FROM wodandb.wodan_varmapping AS g_0 WHERE (g_0.tablename = 'la') AND (g_0.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in) DependentAccessNode(16) output=[lm.VariableID, lm.Labogroep] SELECT g_0.VariableID, g_0.Labogroep FROM izisprod.prod_U_P_LabMapping AS g_0 WHERE (g_0.VariableID IN ()) AND (g_0.Labogroep IN ()) COMMAND STATEMENT: INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1) AS f WHERE f__1.rang = 1; STATEMENT COMMAND PROCESS PLAN: ProjectIntoNode(17) output=[Count] #tmp_pr_retrieve_labres ProjectNode(18) output=[izisviews.pr_retrieve_labres.patientid_in, f__1.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue] [izisviews.pr_retrieve_labres.patientid_in, f__1.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue] SelectNode(19) output=[f__1.variableid, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue] f__1.rang = 1 ProjectNode(20) output=[f__1.rang, f__1.variableid, f__1.SampleTime, f__1.EnterTime, f__1.varvalue, f__1.StringValue] [ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue] WindowFunctionProjectNode(21) output=[ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC), v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue] SelectNode(22) output=[v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue] v__1.rang = 1 ProjectNode(23) output=[v__1.rang, v__1.variableid, v__1.SampleTime, v__1.EnterTime, v__1.varvalue, v__1.StringValue] [ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang, lcv__1.variableid_nieuw AS variableid, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue] WindowFunctionProjectNode(24) output=[ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC), lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue] JoinNode(25) [Dependent] [ENHANCED SORT JOIN (SORT/SORT)] [INNER JOIN] criteria=[lm__1.VariableID=lcv__1.variableid_oud, lm__1.Labogroep=vm__1.variableid] output=[lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue] AccessNode(26) output=[lm__1.VariableID, lm__1.Labogroep] SELECT g_0.VariableID, g_0.Labogroep FROM iziswh.wh_U_P_LabMapping AS g_0 JoinNode(27) [NESTED LOOP JOIN] [CROSS JOIN] output=[lcv__1.variableid_oud, vm__1.variableid, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue] SelectNode(28) output=[lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue] (bitand(convert(lcv__1.Status, integer), 2) <> 2) AND (bitand(convert(lcv__1.Status, integer), 8) = 8) DependentAccessNode(29) output=[lcv__1.Status, lcv__1.variableid_oud, lcv__1.ResultID, lcv__1.ResultNo, lcv__1.variableid_nieuw, lcv__1.SampleTime, lcv__1.EnterTime, lcv__1.varvalue, lcv__1.StringValue] SELECT g_0.Status, g_0.variableid_oud, g_0.ResultID, g_0.ResultNo, g_0.variableid_nieuw, g_0.SampleTime, g_0.EnterTime, g_0.varvalue, g_0.StringValue FROM iziswh.wh_U_PV_LabCorrectValues AS g_0 WHERE (g_0.PatientID = izisviews.pr_retrieve_labres.patientid_in) AND (g_0.variableid_oud IN ()) DependentAccessNode(30) output=[vm__1.variableid] SELECT g_0.variableid FROM wodandb.wodan_varmapping AS g_0 WHERE (g_0.tablename = 'la') AND (g_0.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in) AND (g_0.variableid IN ()) IF STATEMENT: IF(izisviews.pr_retrieve_labres.production = TRUE) BEGIN INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v.variableid, v.SampleTime ORDER BY v.EnterTime DESC) AS rang FROM (SELECT lcv.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv.variableid_oud, lcv.ResultID ORDER BY lcv.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN izisprod.prod_U_P_LabMapping AS lm ON vm.variableid = lm.Labogroep) INNER JOIN izisprod.prod_U_PV_LabCorrectValues AS lcv ON lcv.variableid_oud = lm.VariableID WHERE (vm.tablename = 'la') AND (vm.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v.rang = 1) AS f WHERE f.rang = 1; END ELSE BEGIN INSERT INTO #tmp_pr_retrieve_labres (patientid, variableid, resultgroup, datetime, entertime, varvalue, stringvalue) SELECT izisviews.pr_retrieve_labres.patientid_in, f.variableid, izisviews.pr_retrieve_labres.resultgroup_in, f.SampleTime, f.EnterTime, f.varvalue, f.StringValue FROM (SELECT v.variableid, v.SampleTime, v.EnterTime, v.varvalue, v.StringValue, ROW_NUMBER() OVER (PARTITION BY v__1.variableid, v__1.SampleTime ORDER BY v__1.EnterTime DESC) AS rang FROM (SELECT lcv__1.variableid_nieuw AS variableid, lcv.SampleTime, lcv.EnterTime, lcv.varvalue, lcv.StringValue, ROW_NUMBER() OVER (PARTITION BY lcv__1.variableid_oud, lcv__1.ResultID ORDER BY lcv__1.ResultNo DESC) AS rang FROM (wodandb.wodan_varmapping AS vm INNER JOIN iziswh.wh_U_P_LabMapping AS lm ON vm__1.variableid = lm__1.Labogroep) INNER JOIN iziswh.wh_U_PV_LabCorrectValues AS lcv ON lcv__1.variableid_oud = lm__1.VariableID AND lcv__1.PatientID = izisviews.pr_retrieve_labres.patientid_in AND bitand(convert(lcv__1.Status, integer), 8) = 8 AND bitand(convert(lcv__1.Status, integer), 2) <> 2 WHERE (vm__1.tablename = 'la') AND (vm__1.resultgroup = izisviews.pr_retrieve_labres.resultgroup_in)) AS v WHERE v__1.rang = 1) AS f WHERE f__1.rang = 1; END COMMAND STATEMENT: SELECT #tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue FROM #tmp_pr_retrieve_labres; STATEMENT COMMAND PROCESS PLAN: AccessNode(31) output=[#tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue] SELECT #tmp_pr_retrieve_labres.patientid, #tmp_pr_retrieve_labres.variableid, #tmp_pr_retrieve_labres.resultgroup, #tmp_pr_retrieve_labres.datetime, #tmp_pr_retrieve_labres.entertime, #tmp_pr_retrieve_labres.varvalue, #tmp_pr_retrieve_labres.stringvalue FROM #tmp_pr_retrieve_labres COMMAND STATEMENT: DROP TABLE #tmp_pr_retrieve_labres; STATEMENT COMMAND PROCESS PLAN: AccessNode(32) output=[Count] DROP TABLE #tmp_pr_retrieve_labres #################################################### #################################################### PROCEDURE PLAN :ProcedurePlan: PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null 1: IF INSTRUCTION: izisviews.pr_retrieve_labres.production = TRUE PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null ELSE PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null 2: CREATE CURSOR RESULTSET INSTRUCTION - null 3: CREATE CURSOR RESULTSET INSTRUCTION - null #################################################### ---------------------------------------------------------------------------- OPTIMIZATION COMPLETE: PROCESSOR PLAN: ProcedurePlan: PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null 1: IF INSTRUCTION: izisviews.pr_retrieve_labres.production = TRUE PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null ELSE PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null 2: CREATE CURSOR RESULTSET INSTRUCTION - null 3: CREATE CURSOR RESULTSET INSTRUCTION - null ============================================================================ CANONICAL PLAN: TupleLimit(groups=[], props={MAX_TUPLE_LIMIT=100}) Sort(groups=[izisviews.pr_retrieve_labres AS lrs], props={SORT_ORDER=ORDER BY lrs.datetime, lrs.entertime DESC, UNRELATED_SORT=true}) Project(groups=[izisprod.prod_P_GeneralData AS gd, izisviews.pr_retrieve_labres AS lrs], props={PROJECT_COLS=[gd.PatientID, lrs.datetime, lrs.varvalue AS phtype]}) Select(groups=[izisprod.prod_P_GeneralData AS gd], props={SELECT_CRITERIA=gd.Status = 1}) Join(groups=[izisprod.prod_P_GeneralData AS gd, izisviews.pr_patient_in_production AS ip, izisviews.pr_retrieve_labres AS lrs], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lrs.patientid_in = gd.PatientID, lrs.production = ip.production, lrs.resultgroup_in = 'pH-type', lrs.varvalue = 1.0]}) Join(groups=[izisprod.prod_P_GeneralData AS gd, izisviews.pr_patient_in_production AS ip], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[ip.patientid = gd.PatientID]}) Source(groups=[izisprod.prod_P_GeneralData AS gd]) Source(groups=[izisviews.pr_patient_in_production AS ip], props={NESTED_COMMAND=SELECT X.*, izisviews.pr_patient_in_production.patientid AS patientid FROM (EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid)) AS X, SYMBOL_MAP={ip.production=X.production, ip.patientid=izisviews.pr_patient_in_production.patientid}}) Project(groups=[X], props={PROJECT_COLS=[X.production, izisviews.pr_patient_in_production.patientid AS patientid]}) Source(groups=[X], props={NESTED_COMMAND=EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid), SYMBOL_MAP={X.production=izisviews.pr_patient_in_production.production}}) Project(groups=[izisviews.pr_patient_in_production], props={PROJECT_COLS=[izisviews.pr_patient_in_production.production]}) Source(groups=[izisviews.pr_patient_in_production], props={VIRTUAL_COMMAND=EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid), NESTED_COMMAND=EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid), PROCESSOR_PLAN=ProcedurePlan: PROGRAM counter 0 0: ASSIGNMENT INSTRUCTION: VARIABLES.production 1: ASSIGNMENT INSTRUCTION: izisviews.pr_patient_in_production.production 2: RETURN }) Source(groups=[izisviews.pr_retrieve_labres AS lrs], props={NESTED_COMMAND=SELECT X.*, izisviews.pr_retrieve_labres.patientid_in AS patientid_in, izisviews.pr_retrieve_labres.production AS production, izisviews.pr_retrieve_labres.resultgroup_in AS resultgroup_in FROM (EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in)) AS X, SYMBOL_MAP={lrs.patientid=X.patientid, lrs.variableid=X.variableid, lrs.resultgroup=X.resultgroup, lrs.datetime=X.datetime, lrs.entertime=X.entertime, lrs.varvalue=X.varvalue, lrs.stringvalue=X.stringvalue, lrs.patientid_in=izisviews.pr_retrieve_labres.patientid_in, lrs.production=izisviews.pr_retrieve_labres.production, lrs.resultgroup_in=izisviews.pr_retrieve_labres.resultgroup_in}}) Project(groups=[X], props={PROJECT_COLS=[X.patientid, X.variableid, X.resultgroup, X.datetime, X.entertime, X.varvalue, X.stringvalue, izisviews.pr_retrieve_labres.patientid_in AS patientid_in, izisviews.pr_retrieve_labres.production AS production, izisviews.pr_retrieve_labres.resultgroup_in AS resultgroup_in]}) Source(groups=[X], props={NESTED_COMMAND=EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={X.patientid=izisviews.pr_retrieve_labres.patientid, X.variableid=izisviews.pr_retrieve_labres.variableid, X.resultgroup=izisviews.pr_retrieve_labres.resultgroup, X.datetime=izisviews.pr_retrieve_labres.datetime, X.entertime=izisviews.pr_retrieve_labres.entertime, X.varvalue=izisviews.pr_retrieve_labres.varvalue, X.stringvalue=izisviews.pr_retrieve_labres.stringvalue}}) Project(groups=[izisviews.pr_retrieve_labres], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid, izisviews.pr_retrieve_labres.variableid, izisviews.pr_retrieve_labres.resultgroup, izisviews.pr_retrieve_labres.datetime, izisviews.pr_retrieve_labres.entertime, izisviews.pr_retrieve_labres.varvalue, izisviews.pr_retrieve_labres.stringvalue]}) Source(groups=[izisviews.pr_retrieve_labres], props={VIRTUAL_COMMAND=EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in), NESTED_COMMAND=EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in), PROCESSOR_PLAN=ProcedurePlan: PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null 1: IF INSTRUCTION: izisviews.pr_retrieve_labres.production = TRUE PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null ELSE PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null 2: CREATE CURSOR RESULTSET INSTRUCTION - null 3: CREATE CURSOR RESULTSET INSTRUCTION - null }) ============================================================================ EXECUTING PlaceAccess AFTER: TupleLimit(groups=[], props={MAX_TUPLE_LIMIT=100}) Sort(groups=[izisviews.pr_retrieve_labres AS lrs], props={SORT_ORDER=ORDER BY lrs.datetime, lrs.entertime DESC, UNRELATED_SORT=true}) Project(groups=[izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1], props={PROJECT_COLS=[gd__1.PatientID, lrs.datetime, lrs.varvalue AS phtype]}) Select(groups=[izisprod.prod_P_GeneralData AS gd__1], props={SELECT_CRITERIA=gd__1.Status = 1}) Join(groups=[izisviews.pr_patient_in_production AS ip, izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lrs.patientid_in = gd__1.PatientID, lrs.production = ip.production, lrs.resultgroup_in = 'pH-type', lrs.varvalue = 1.0]}) Join(groups=[izisviews.pr_patient_in_production AS ip, izisprod.prod_P_GeneralData AS gd__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[ip.patientid = gd__1.PatientID]}) Access(groups=[izisprod.prod_P_GeneralData AS gd__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04}) Source(groups=[izisprod.prod_P_GeneralData AS gd__1]) Source(groups=[izisviews.pr_patient_in_production AS ip], props={NESTED_COMMAND=SELECT X.*, izisviews.pr_patient_in_production.patientid AS patientid FROM (EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid)) AS X, SYMBOL_MAP={ip.production=X.production, ip.patientid=izisviews.pr_patient_in_production.patientid}, ACCESS_PATTERNS=[Access Pattern: Unsatisfied [ip.patientid] History [[ip.patientid]]]}) Project(groups=[X], props={PROJECT_COLS=[X.production, izisviews.pr_patient_in_production.patientid AS patientid]}) Source(groups=[X], props={NESTED_COMMAND=EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid), SYMBOL_MAP={X.production=izisviews.pr_patient_in_production.production}}) Project(groups=[izisviews.pr_patient_in_production], props={PROJECT_COLS=[izisviews.pr_patient_in_production.production]}) Access(groups=[izisviews.pr_patient_in_production], props={SOURCE_HINT=null}) Source(groups=[izisviews.pr_patient_in_production], props={VIRTUAL_COMMAND=EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid), NESTED_COMMAND=EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid), PROCESSOR_PLAN=ProcedurePlan: PROGRAM counter 0 0: ASSIGNMENT INSTRUCTION: VARIABLES.production 1: ASSIGNMENT INSTRUCTION: izisviews.pr_patient_in_production.production 2: RETURN }) Source(groups=[izisviews.pr_retrieve_labres AS lrs], props={NESTED_COMMAND=SELECT X.*, izisviews.pr_retrieve_labres.patientid_in AS patientid_in, izisviews.pr_retrieve_labres.production AS production, izisviews.pr_retrieve_labres.resultgroup_in AS resultgroup_in FROM (EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in)) AS X, SYMBOL_MAP={lrs.patientid=X__1.patientid, lrs.variableid=X__1.variableid, lrs.resultgroup=X__1.resultgroup, lrs.datetime=X__1.datetime, lrs.entertime=X__1.entertime, lrs.varvalue=X__1.varvalue, lrs.stringvalue=X__1.stringvalue, lrs.patientid_in=izisviews.pr_retrieve_labres.patientid_in, lrs.production=izisviews.pr_retrieve_labres.production, lrs.resultgroup_in=izisviews.pr_retrieve_labres.resultgroup_in}, ACCESS_PATTERNS=[Access Pattern: Unsatisfied [lrs.production, lrs.resultgroup_in, lrs.patientid_in] History [[lrs.patientid_in, lrs.production, lrs.resultgroup_in]]]}) Project(groups=[X AS X__1], props={PROJECT_COLS=[X__1.patientid, X__1.variableid, X__1.resultgroup, X__1.datetime, X__1.entertime, X__1.varvalue, X__1.stringvalue, izisviews.pr_retrieve_labres.patientid_in AS patientid_in, izisviews.pr_retrieve_labres.production AS production, izisviews.pr_retrieve_labres.resultgroup_in AS resultgroup_in]}) Source(groups=[X AS X__1], props={NESTED_COMMAND=EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={X__1.patientid=izisviews.pr_retrieve_labres.patientid, X__1.variableid=izisviews.pr_retrieve_labres.variableid, X__1.resultgroup=izisviews.pr_retrieve_labres.resultgroup, X__1.datetime=izisviews.pr_retrieve_labres.datetime, X__1.entertime=izisviews.pr_retrieve_labres.entertime, X__1.varvalue=izisviews.pr_retrieve_labres.varvalue, X__1.stringvalue=izisviews.pr_retrieve_labres.stringvalue}}) Project(groups=[izisviews.pr_retrieve_labres], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid, izisviews.pr_retrieve_labres.variableid, izisviews.pr_retrieve_labres.resultgroup, izisviews.pr_retrieve_labres.datetime, izisviews.pr_retrieve_labres.entertime, izisviews.pr_retrieve_labres.varvalue, izisviews.pr_retrieve_labres.stringvalue]}) Access(groups=[izisviews.pr_retrieve_labres], props={SOURCE_HINT=null}) Source(groups=[izisviews.pr_retrieve_labres], props={VIRTUAL_COMMAND=EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in), NESTED_COMMAND=EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in), PROCESSOR_PLAN=ProcedurePlan: PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null 1: IF INSTRUCTION: izisviews.pr_retrieve_labres.production = TRUE PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null ELSE PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null 2: CREATE CURSOR RESULTSET INSTRUCTION - null 3: CREATE CURSOR RESULTSET INSTRUCTION - null }) ============================================================================ EXECUTING AssignOutputElements AFTER: TupleLimit(groups=[], props={MAX_TUPLE_LIMIT=100, OUTPUT_COLS=[gd__1.PatientID, lrs.datetime, lrs.varvalue AS phtype]}) Sort(groups=[izisviews.pr_retrieve_labres AS lrs], props={SORT_ORDER=ORDER BY lrs.datetime, lrs.entertime DESC, UNRELATED_SORT=true, OUTPUT_COLS=[gd__1.PatientID, lrs.datetime, lrs.varvalue AS phtype]}) Project(groups=[izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1], props={PROJECT_COLS=[gd__1.PatientID, lrs.datetime, lrs.varvalue AS phtype], OUTPUT_COLS=[gd__1.PatientID, lrs.datetime, lrs.varvalue AS phtype, lrs.entertime]}) Select(groups=[izisprod.prod_P_GeneralData AS gd__1], props={SELECT_CRITERIA=gd__1.Status = 1, OUTPUT_COLS=[gd__1.PatientID, lrs.datetime, lrs.varvalue, lrs.entertime]}) Join(groups=[izisviews.pr_patient_in_production AS ip, izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lrs.patientid_in = gd__1.PatientID, lrs.production = ip.production, lrs.resultgroup_in = 'pH-type', lrs.varvalue = 1.0], OUTPUT_COLS=[gd__1.Status, gd__1.PatientID, lrs.datetime, lrs.varvalue, lrs.entertime]}) Join(groups=[izisviews.pr_patient_in_production AS ip, izisprod.prod_P_GeneralData AS gd__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[ip.patientid = gd__1.PatientID], OUTPUT_COLS=[gd__1.PatientID, ip.production, gd__1.Status]}) Access(groups=[izisprod.prod_P_GeneralData AS gd__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=[gd__1.PatientID, gd__1.Status]}) Source(groups=[izisprod.prod_P_GeneralData AS gd__1], props={OUTPUT_COLS=[gd__1.PatientID, gd__1.Status]}) Source(groups=[izisviews.pr_patient_in_production AS ip], props={NESTED_COMMAND=SELECT X.*, izisviews.pr_patient_in_production.patientid AS patientid FROM (EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid)) AS X, SYMBOL_MAP={ip.patientid=izisviews.pr_patient_in_production.patientid, ip.production=X.production}, ACCESS_PATTERNS=[Access Pattern: Unsatisfied [ip.patientid] History [[ip.patientid]]], OUTPUT_COLS=[ip.patientid, ip.production]}) Project(groups=[X], props={PROJECT_COLS=[izisviews.pr_patient_in_production.patientid AS patientid, X.production], OUTPUT_COLS=[izisviews.pr_patient_in_production.patientid AS patientid, X.production]}) Source(groups=[X], props={NESTED_COMMAND=EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid), SYMBOL_MAP={X.production=izisviews.pr_patient_in_production.production}, OUTPUT_COLS=[X.production]}) Project(groups=[izisviews.pr_patient_in_production], props={PROJECT_COLS=[izisviews.pr_patient_in_production.production], OUTPUT_COLS=[izisviews.pr_patient_in_production.production]}) Access(groups=[izisviews.pr_patient_in_production], props={SOURCE_HINT=null, OUTPUT_COLS=[izisviews.pr_patient_in_production.production]}) Source(groups=[izisviews.pr_patient_in_production], props={VIRTUAL_COMMAND=EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid), NESTED_COMMAND=EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid), PROCESSOR_PLAN=ProcedurePlan: PROGRAM counter 0 0: ASSIGNMENT INSTRUCTION: VARIABLES.production 1: ASSIGNMENT INSTRUCTION: izisviews.pr_patient_in_production.production 2: RETURN , OUTPUT_COLS=[izisviews.pr_patient_in_production.production]}) Source(groups=[izisviews.pr_retrieve_labres AS lrs], props={NESTED_COMMAND=SELECT X.*, izisviews.pr_retrieve_labres.patientid_in AS patientid_in, izisviews.pr_retrieve_labres.production AS production, izisviews.pr_retrieve_labres.resultgroup_in AS resultgroup_in FROM (EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in)) AS X, SYMBOL_MAP={lrs.patientid_in=izisviews.pr_retrieve_labres.patientid_in, lrs.production=izisviews.pr_retrieve_labres.production, lrs.resultgroup_in=izisviews.pr_retrieve_labres.resultgroup_in, lrs.varvalue=X__1.varvalue, lrs.datetime=X__1.datetime, lrs.entertime=X__1.entertime}, ACCESS_PATTERNS=[Access Pattern: Unsatisfied [lrs.production, lrs.resultgroup_in, lrs.patientid_in] History [[lrs.patientid_in, lrs.production, lrs.resultgroup_in]]], OUTPUT_COLS=[lrs.patientid_in, lrs.production, lrs.resultgroup_in, lrs.varvalue, lrs.datetime, lrs.entertime]}) Project(groups=[X AS X__1], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid_in AS patientid_in, izisviews.pr_retrieve_labres.production AS production, izisviews.pr_retrieve_labres.resultgroup_in AS resultgroup_in, X__1.varvalue, X__1.datetime, X__1.entertime], OUTPUT_COLS=[izisviews.pr_retrieve_labres.patientid_in AS patientid_in, izisviews.pr_retrieve_labres.production AS production, izisviews.pr_retrieve_labres.resultgroup_in AS resultgroup_in, X__1.varvalue, X__1.datetime, X__1.entertime]}) Source(groups=[X AS X__1], props={NESTED_COMMAND=EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={X__1.varvalue=izisviews.pr_retrieve_labres.varvalue, X__1.datetime=izisviews.pr_retrieve_labres.datetime, X__1.entertime=izisviews.pr_retrieve_labres.entertime}, OUTPUT_COLS=[X__1.varvalue, X__1.datetime, X__1.entertime]}) Project(groups=[izisviews.pr_retrieve_labres], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.varvalue, izisviews.pr_retrieve_labres.datetime, izisviews.pr_retrieve_labres.entertime], OUTPUT_COLS=[izisviews.pr_retrieve_labres.varvalue, izisviews.pr_retrieve_labres.datetime, izisviews.pr_retrieve_labres.entertime]}) Access(groups=[izisviews.pr_retrieve_labres], props={SOURCE_HINT=null, OUTPUT_COLS=[izisviews.pr_retrieve_labres.patientid, izisviews.pr_retrieve_labres.variableid, izisviews.pr_retrieve_labres.resultgroup, izisviews.pr_retrieve_labres.datetime, izisviews.pr_retrieve_labres.entertime, izisviews.pr_retrieve_labres.varvalue, izisviews.pr_retrieve_labres.stringvalue]}) Source(groups=[izisviews.pr_retrieve_labres], props={VIRTUAL_COMMAND=EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in), NESTED_COMMAND=EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in), PROCESSOR_PLAN=ProcedurePlan: PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null 1: IF INSTRUCTION: izisviews.pr_retrieve_labres.production = TRUE PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null ELSE PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null 2: CREATE CURSOR RESULTSET INSTRUCTION - null 3: CREATE CURSOR RESULTSET INSTRUCTION - null , OUTPUT_COLS=[izisviews.pr_retrieve_labres.varvalue, izisviews.pr_retrieve_labres.datetime, izisviews.pr_retrieve_labres.entertime]}) ============================================================================ EXECUTING PushSelectCriteria AFTER: TupleLimit(groups=[]) Sort(groups=[izisviews.pr_retrieve_labres AS lrs]) Project(groups=[izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1], props={PROJECT_COLS=[gd__1.PatientID, lrs.datetime, lrs.varvalue AS phtype], OUTPUT_COLS=[gd__1.PatientID, lrs.datetime, lrs.varvalue AS phtype, lrs.entertime]}) Join(groups=[izisviews.pr_patient_in_production AS ip, izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lrs.patientid_in = gd__1.PatientID, lrs.production = ip.production, lrs.resultgroup_in = 'pH-type', lrs.varvalue = 1.0], OUTPUT_COLS=[gd__1.Status, gd__1.PatientID, lrs.datetime, lrs.varvalue, lrs.entertime]}) Join(groups=[izisviews.pr_patient_in_production AS ip, izisprod.prod_P_GeneralData AS gd__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[ip.patientid = gd__1.PatientID], OUTPUT_COLS=[gd__1.PatientID, ip.production, gd__1.Status]}) Access(groups=[izisprod.prod_P_GeneralData AS gd__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=[gd__1.PatientID, gd__1.Status]}) Select(groups=[izisprod.prod_P_GeneralData AS gd__1], props={SELECT_CRITERIA=gd__1.Status = 1, OUTPUT_COLS=[gd__1.PatientID, lrs.datetime, lrs.varvalue, lrs.entertime]}) Source(groups=[izisprod.prod_P_GeneralData AS gd__1], props={OUTPUT_COLS=[gd__1.PatientID, gd__1.Status]}) Source(groups=[izisviews.pr_patient_in_production AS ip]) Project(groups=[X]) Source(groups=[X]) Project(groups=[izisviews.pr_patient_in_production]) Access(groups=[izisviews.pr_patient_in_production]) Source(groups=[izisviews.pr_patient_in_production]) Source(groups=[izisviews.pr_retrieve_labres AS lrs]) Project(groups=[X AS X__1]) Source(groups=[X AS X__1]) Project(groups=[izisviews.pr_retrieve_labres]) Access(groups=[izisviews.pr_retrieve_labres]) Source(groups=[izisviews.pr_retrieve_labres]) ============================================================================ EXECUTING MergeVirtual AFTER: TupleLimit(groups=[]) Sort(groups=[izisviews.pr_retrieve_labres AS lrs]) Project(groups=[izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1]) Join(groups=[izisviews.pr_patient_in_production AS ip, izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1]) Join(groups=[izisviews.pr_patient_in_production AS ip, izisprod.prod_P_GeneralData AS gd__1]) Access(groups=[izisprod.prod_P_GeneralData AS gd__1]) Select(groups=[izisprod.prod_P_GeneralData AS gd__1]) Source(groups=[izisprod.prod_P_GeneralData AS gd__1]) Source(groups=[izisviews.pr_patient_in_production AS ip]) Project(groups=[X]) Source(groups=[X]) Project(groups=[izisviews.pr_patient_in_production]) Access(groups=[izisviews.pr_patient_in_production]) Source(groups=[izisviews.pr_patient_in_production], props={VIRTUAL_COMMAND=EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid), NESTED_COMMAND=EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid), PROCESSOR_PLAN=ProcedurePlan: PROGRAM counter 0 0: ASSIGNMENT INSTRUCTION: VARIABLES.production 1: ASSIGNMENT INSTRUCTION: izisviews.pr_patient_in_production.production 2: RETURN , OUTPUT_COLS=[izisviews.pr_patient_in_production.production]}) Source(groups=[izisviews.pr_retrieve_labres AS lrs]) Project(groups=[X AS X__1]) Source(groups=[X AS X__1]) Project(groups=[izisviews.pr_retrieve_labres]) Access(groups=[izisviews.pr_retrieve_labres]) Source(groups=[izisviews.pr_retrieve_labres], props={VIRTUAL_COMMAND=EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in), NESTED_COMMAND=EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in), PROCESSOR_PLAN=ProcedurePlan: PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null 1: IF INSTRUCTION: izisviews.pr_retrieve_labres.production = TRUE PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null ELSE PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null 2: CREATE CURSOR RESULTSET INSTRUCTION - null 3: CREATE CURSOR RESULTSET INSTRUCTION - null , OUTPUT_COLS=[izisviews.pr_retrieve_labres.varvalue, izisviews.pr_retrieve_labres.datetime, izisviews.pr_retrieve_labres.entertime]}) ============================================================================ EXECUTING PushNonJoinCriteria AFTER: TupleLimit(groups=[]) Sort(groups=[izisviews.pr_retrieve_labres AS lrs]) Project(groups=[izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1]) Join(groups=[izisviews.pr_patient_in_production AS ip, izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lrs.patientid_in = gd__1.PatientID, lrs.production = ip.production], OUTPUT_COLS=[gd__1.Status, gd__1.PatientID, lrs.datetime, lrs.varvalue, lrs.entertime]}) Join(groups=[izisviews.pr_patient_in_production AS ip, izisprod.prod_P_GeneralData AS gd__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[ip.patientid = gd__1.PatientID], OUTPUT_COLS=[gd__1.PatientID, ip.production, gd__1.Status]}) Access(groups=[izisprod.prod_P_GeneralData AS gd__1]) Select(groups=[izisprod.prod_P_GeneralData AS gd__1]) Source(groups=[izisprod.prod_P_GeneralData AS gd__1]) Source(groups=[izisviews.pr_patient_in_production AS ip]) Project(groups=[X]) Source(groups=[X]) Project(groups=[izisviews.pr_patient_in_production]) Access(groups=[izisviews.pr_patient_in_production]) Source(groups=[izisviews.pr_patient_in_production]) Select(groups=[izisviews.pr_retrieve_labres AS lrs], props={SELECT_CRITERIA=lrs.varvalue = 1.0}) Select(groups=[izisviews.pr_retrieve_labres AS lrs], props={SELECT_CRITERIA=lrs.resultgroup_in = 'pH-type'}) Source(groups=[izisviews.pr_retrieve_labres AS lrs], props={NESTED_COMMAND=SELECT X.*, izisviews.pr_retrieve_labres.patientid_in AS patientid_in, izisviews.pr_retrieve_labres.production AS production, izisviews.pr_retrieve_labres.resultgroup_in AS resultgroup_in FROM (EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in)) AS X, SYMBOL_MAP={lrs.patientid_in=izisviews.pr_retrieve_labres.patientid_in, lrs.production=izisviews.pr_retrieve_labres.production, lrs.resultgroup_in=izisviews.pr_retrieve_labres.resultgroup_in, lrs.varvalue=X__1.varvalue, lrs.datetime=X__1.datetime, lrs.entertime=X__1.entertime}, ACCESS_PATTERNS=[Access Pattern: Unsatisfied [lrs.production, lrs.resultgroup_in, lrs.patientid_in] History [[lrs.patientid_in, lrs.production, lrs.resultgroup_in]]], OUTPUT_COLS=[lrs.patientid_in, lrs.production, lrs.resultgroup_in, lrs.varvalue, lrs.datetime, lrs.entertime]}) Project(groups=[X AS X__1]) Source(groups=[X AS X__1]) Project(groups=[izisviews.pr_retrieve_labres]) Access(groups=[izisviews.pr_retrieve_labres]) Source(groups=[izisviews.pr_retrieve_labres]) ============================================================================ EXECUTING PushSelectCriteria AFTER: TupleLimit(groups=[]) Sort(groups=[izisviews.pr_retrieve_labres AS lrs]) Project(groups=[izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1]) Join(groups=[izisviews.pr_patient_in_production AS ip, izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1]) Join(groups=[izisviews.pr_patient_in_production AS ip, izisprod.prod_P_GeneralData AS gd__1]) Access(groups=[izisprod.prod_P_GeneralData AS gd__1]) Select(groups=[izisprod.prod_P_GeneralData AS gd__1]) Source(groups=[izisprod.prod_P_GeneralData AS gd__1]) Source(groups=[izisviews.pr_patient_in_production AS ip]) Project(groups=[X]) Source(groups=[X]) Project(groups=[izisviews.pr_patient_in_production]) Access(groups=[izisviews.pr_patient_in_production]) Source(groups=[izisviews.pr_patient_in_production]) Select(groups=[izisviews.pr_retrieve_labres AS lrs], props={SELECT_CRITERIA=lrs.varvalue = 1.0}) Select(groups=[izisviews.pr_retrieve_labres AS lrs], props={SELECT_CRITERIA=lrs.resultgroup_in = 'pH-type', IS_PHANTOM=true}) Source(groups=[izisviews.pr_retrieve_labres AS lrs], props={NESTED_COMMAND=SELECT X.*, izisviews.pr_retrieve_labres.patientid_in AS patientid_in, izisviews.pr_retrieve_labres.production AS production, izisviews.pr_retrieve_labres.resultgroup_in AS resultgroup_in FROM (EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in)) AS X, SYMBOL_MAP={lrs.patientid_in=izisviews.pr_retrieve_labres.patientid_in, lrs.production=izisviews.pr_retrieve_labres.production, lrs.resultgroup_in=izisviews.pr_retrieve_labres.resultgroup_in, lrs.varvalue=X__1.varvalue, lrs.datetime=X__1.datetime, lrs.entertime=X__1.entertime}, ACCESS_PATTERNS=[Access Pattern: Unsatisfied [lrs.production, lrs.patientid_in] History [[lrs.patientid_in, lrs.production, lrs.resultgroup_in]]], OUTPUT_COLS=[lrs.patientid_in, lrs.production, lrs.resultgroup_in, lrs.varvalue, lrs.datetime, lrs.entertime]}) Project(groups=[X AS X__1], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid_in AS patientid_in, izisviews.pr_retrieve_labres.production AS production, izisviews.pr_retrieve_labres.resultgroup_in AS resultgroup_in, X__1.varvalue, X__1.datetime, X__1.entertime], OUTPUT_COLS=[izisviews.pr_retrieve_labres.patientid_in AS patientid_in, izisviews.pr_retrieve_labres.production AS production, izisviews.pr_retrieve_labres.resultgroup_in AS resultgroup_in, X__1.varvalue, X__1.datetime, X__1.entertime]}) Select(groups=[], props={SELECT_CRITERIA=izisviews.pr_retrieve_labres.resultgroup_in = 'pH-type'}) Source(groups=[X AS X__1], props={NESTED_COMMAND=EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={X__1.varvalue=izisviews.pr_retrieve_labres.varvalue, X__1.datetime=izisviews.pr_retrieve_labres.datetime, X__1.entertime=izisviews.pr_retrieve_labres.entertime}, OUTPUT_COLS=[X__1.varvalue, X__1.datetime, X__1.entertime]}) Project(groups=[izisviews.pr_retrieve_labres]) Access(groups=[izisviews.pr_retrieve_labres]) Source(groups=[izisviews.pr_retrieve_labres]) ============================================================================ EXECUTING CleanCriteria AFTER: TupleLimit(groups=[], props={MAX_TUPLE_LIMIT=100, OUTPUT_COLS=null}) Sort(groups=[izisviews.pr_retrieve_labres AS lrs], props={SORT_ORDER=ORDER BY lrs.datetime, lrs.entertime DESC, UNRELATED_SORT=true, OUTPUT_COLS=null}) Project(groups=[izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1], props={PROJECT_COLS=[gd__1.PatientID, lrs.datetime, lrs.varvalue AS phtype], OUTPUT_COLS=null}) Join(groups=[izisviews.pr_patient_in_production AS ip, izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lrs.patientid_in = gd__1.PatientID, lrs.production = ip.production], OUTPUT_COLS=null}) Join(groups=[izisviews.pr_patient_in_production AS ip, izisprod.prod_P_GeneralData AS gd__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[ip.patientid = gd__1.PatientID], OUTPUT_COLS=null}) Access(groups=[izisprod.prod_P_GeneralData AS gd__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=null}) Select(groups=[izisprod.prod_P_GeneralData AS gd__1], props={SELECT_CRITERIA=gd__1.Status = 1, OUTPUT_COLS=null}) Source(groups=[izisprod.prod_P_GeneralData AS gd__1], props={OUTPUT_COLS=null}) Source(groups=[izisviews.pr_patient_in_production AS ip], props={NESTED_COMMAND=SELECT X.*, izisviews.pr_patient_in_production.patientid AS patientid FROM (EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid)) AS X, SYMBOL_MAP={ip.patientid=izisviews.pr_patient_in_production.patientid, ip.production=X.production}, ACCESS_PATTERNS=[Access Pattern: Unsatisfied [ip.patientid] History [[ip.patientid]]], OUTPUT_COLS=null}) Project(groups=[X], props={PROJECT_COLS=[izisviews.pr_patient_in_production.patientid AS patientid, X.production], OUTPUT_COLS=null}) Source(groups=[X], props={NESTED_COMMAND=EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid), SYMBOL_MAP={X.production=izisviews.pr_patient_in_production.production}, OUTPUT_COLS=null}) Project(groups=[izisviews.pr_patient_in_production], props={PROJECT_COLS=[izisviews.pr_patient_in_production.production], OUTPUT_COLS=null}) Access(groups=[izisviews.pr_patient_in_production], props={SOURCE_HINT=null, OUTPUT_COLS=null}) Source(groups=[izisviews.pr_patient_in_production], props={VIRTUAL_COMMAND=EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid), NESTED_COMMAND=EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid), PROCESSOR_PLAN=ProcedurePlan: PROGRAM counter 0 0: ASSIGNMENT INSTRUCTION: VARIABLES.production 1: ASSIGNMENT INSTRUCTION: izisviews.pr_patient_in_production.production 2: RETURN , OUTPUT_COLS=null}) Select(groups=[izisviews.pr_retrieve_labres AS lrs], props={SELECT_CRITERIA=lrs.varvalue = 1.0, OUTPUT_COLS=null}) Select(groups=[izisviews.pr_retrieve_labres AS lrs], props={SELECT_CRITERIA=lrs.resultgroup_in = 'pH-type', IS_PHANTOM=true, OUTPUT_COLS=null}) Source(groups=[izisviews.pr_retrieve_labres AS lrs], props={NESTED_COMMAND=SELECT X.*, izisviews.pr_retrieve_labres.patientid_in AS patientid_in, izisviews.pr_retrieve_labres.production AS production, izisviews.pr_retrieve_labres.resultgroup_in AS resultgroup_in FROM (EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in)) AS X, SYMBOL_MAP={lrs.patientid_in=izisviews.pr_retrieve_labres.patientid_in, lrs.production=izisviews.pr_retrieve_labres.production, lrs.resultgroup_in=izisviews.pr_retrieve_labres.resultgroup_in, lrs.varvalue=X__1.varvalue, lrs.datetime=X__1.datetime, lrs.entertime=X__1.entertime}, ACCESS_PATTERNS=[Access Pattern: Unsatisfied [lrs.production, lrs.patientid_in] History [[lrs.patientid_in, lrs.production, lrs.resultgroup_in]]], OUTPUT_COLS=null}) Project(groups=[X AS X__1], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid_in AS patientid_in, izisviews.pr_retrieve_labres.production AS production, izisviews.pr_retrieve_labres.resultgroup_in AS resultgroup_in, X__1.varvalue, X__1.datetime, X__1.entertime], OUTPUT_COLS=null}) Select(groups=[], props={SELECT_CRITERIA=izisviews.pr_retrieve_labres.resultgroup_in = 'pH-type', OUTPUT_COLS=null}) Source(groups=[X AS X__1], props={NESTED_COMMAND=EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={X__1.varvalue=izisviews.pr_retrieve_labres.varvalue, X__1.datetime=izisviews.pr_retrieve_labres.datetime, X__1.entertime=izisviews.pr_retrieve_labres.entertime}, OUTPUT_COLS=null}) Project(groups=[izisviews.pr_retrieve_labres], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.varvalue, izisviews.pr_retrieve_labres.datetime, izisviews.pr_retrieve_labres.entertime], OUTPUT_COLS=null}) Access(groups=[izisviews.pr_retrieve_labres], props={SOURCE_HINT=null, OUTPUT_COLS=null}) Source(groups=[izisviews.pr_retrieve_labres], props={VIRTUAL_COMMAND=EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in), NESTED_COMMAND=EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in), PROCESSOR_PLAN=ProcedurePlan: PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null 1: IF INSTRUCTION: izisviews.pr_retrieve_labres.production = TRUE PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null ELSE PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null 2: CREATE CURSOR RESULTSET INSTRUCTION - null 3: CREATE CURSOR RESULTSET INSTRUCTION - null , OUTPUT_COLS=null}) ============================================================================ EXECUTING RaiseAccess AFTER: TupleLimit(groups=[]) Sort(groups=[izisviews.pr_retrieve_labres AS lrs]) Project(groups=[izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1]) Join(groups=[izisviews.pr_patient_in_production AS ip, izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1]) Join(groups=[izisviews.pr_patient_in_production AS ip, izisprod.prod_P_GeneralData AS gd__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[ip.patientid = gd__1.PatientID], OUTPUT_COLS=null}) Access(groups=[izisprod.prod_P_GeneralData AS gd__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=null}) Select(groups=[izisprod.prod_P_GeneralData AS gd__1]) Source(groups=[izisprod.prod_P_GeneralData AS gd__1]) Source(groups=[izisviews.pr_patient_in_production AS ip]) Project(groups=[X]) Source(groups=[X]) Project(groups=[izisviews.pr_patient_in_production]) Access(groups=[izisviews.pr_patient_in_production]) Source(groups=[izisviews.pr_patient_in_production]) Select(groups=[izisviews.pr_retrieve_labres AS lrs]) Select(groups=[izisviews.pr_retrieve_labres AS lrs]) Source(groups=[izisviews.pr_retrieve_labres AS lrs]) Project(groups=[X AS X__1]) Select(groups=[]) Source(groups=[X AS X__1]) Project(groups=[izisviews.pr_retrieve_labres]) Access(groups=[izisviews.pr_retrieve_labres]) Source(groups=[izisviews.pr_retrieve_labres]) ============================================================================ EXECUTING CopyCriteria AFTER: TupleLimit(groups=[]) Sort(groups=[izisviews.pr_retrieve_labres AS lrs]) Project(groups=[izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1]) Join(groups=[izisviews.pr_patient_in_production AS ip, izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lrs.patientid_in = gd__1.PatientID, lrs.production = ip.production, ip.patientid = lrs.patientid_in], OUTPUT_COLS=null, IS_COPIED=true}) Join(groups=[izisviews.pr_patient_in_production AS ip, izisprod.prod_P_GeneralData AS gd__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[ip.patientid = gd__1.PatientID], OUTPUT_COLS=null, IS_COPIED=true}) Access(groups=[izisprod.prod_P_GeneralData AS gd__1]) Select(groups=[izisprod.prod_P_GeneralData AS gd__1], props={SELECT_CRITERIA=gd__1.Status = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[izisprod.prod_P_GeneralData AS gd__1]) Source(groups=[izisviews.pr_patient_in_production AS ip]) Project(groups=[X]) Source(groups=[X]) Project(groups=[izisviews.pr_patient_in_production]) Access(groups=[izisviews.pr_patient_in_production]) Source(groups=[izisviews.pr_patient_in_production]) Select(groups=[izisviews.pr_retrieve_labres AS lrs], props={SELECT_CRITERIA=lrs.varvalue = 1.0, OUTPUT_COLS=null, IS_COPIED=true}) Select(groups=[izisviews.pr_retrieve_labres AS lrs], props={SELECT_CRITERIA=lrs.resultgroup_in = 'pH-type', IS_PHANTOM=true, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[izisviews.pr_retrieve_labres AS lrs]) Project(groups=[X AS X__1]) Select(groups=[], props={SELECT_CRITERIA=izisviews.pr_retrieve_labres.resultgroup_in = 'pH-type', OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[X AS X__1]) Project(groups=[izisviews.pr_retrieve_labres]) Access(groups=[izisviews.pr_retrieve_labres]) Source(groups=[izisviews.pr_retrieve_labres]) ============================================================================ EXECUTING PushNonJoinCriteria AFTER: TupleLimit(groups=[]) Sort(groups=[izisviews.pr_retrieve_labres AS lrs]) Project(groups=[izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1]) Join(groups=[izisviews.pr_patient_in_production AS ip, izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lrs.patientid_in = gd__1.PatientID, lrs.production = ip.production, ip.patientid = lrs.patientid_in], OUTPUT_COLS=null, IS_COPIED=true}) Join(groups=[izisviews.pr_patient_in_production AS ip, izisprod.prod_P_GeneralData AS gd__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[ip.patientid = gd__1.PatientID], OUTPUT_COLS=null, IS_COPIED=true}) Access(groups=[izisprod.prod_P_GeneralData AS gd__1]) Select(groups=[izisprod.prod_P_GeneralData AS gd__1]) Source(groups=[izisprod.prod_P_GeneralData AS gd__1]) Source(groups=[izisviews.pr_patient_in_production AS ip]) Project(groups=[X]) Source(groups=[X]) Project(groups=[izisviews.pr_patient_in_production]) Access(groups=[izisviews.pr_patient_in_production]) Source(groups=[izisviews.pr_patient_in_production]) Select(groups=[izisviews.pr_retrieve_labres AS lrs]) Select(groups=[izisviews.pr_retrieve_labres AS lrs]) Source(groups=[izisviews.pr_retrieve_labres AS lrs]) Project(groups=[X AS X__1]) Select(groups=[]) Source(groups=[X AS X__1]) Project(groups=[izisviews.pr_retrieve_labres]) Access(groups=[izisviews.pr_retrieve_labres]) Source(groups=[izisviews.pr_retrieve_labres]) ============================================================================ EXECUTING RaiseAccess AFTER: TupleLimit(groups=[]) Sort(groups=[izisviews.pr_retrieve_labres AS lrs]) Project(groups=[izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1]) Join(groups=[izisviews.pr_patient_in_production AS ip, izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1]) Join(groups=[izisviews.pr_patient_in_production AS ip, izisprod.prod_P_GeneralData AS gd__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[ip.patientid = gd__1.PatientID], OUTPUT_COLS=null, IS_COPIED=true}) Access(groups=[izisprod.prod_P_GeneralData AS gd__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=null}) Select(groups=[izisprod.prod_P_GeneralData AS gd__1]) Source(groups=[izisprod.prod_P_GeneralData AS gd__1]) Source(groups=[izisviews.pr_patient_in_production AS ip]) Project(groups=[X]) Source(groups=[X]) Project(groups=[izisviews.pr_patient_in_production]) Access(groups=[izisviews.pr_patient_in_production]) Source(groups=[izisviews.pr_patient_in_production]) Select(groups=[izisviews.pr_retrieve_labres AS lrs]) Select(groups=[izisviews.pr_retrieve_labres AS lrs]) Source(groups=[izisviews.pr_retrieve_labres AS lrs]) Project(groups=[X AS X__1]) Select(groups=[]) Source(groups=[X AS X__1]) Project(groups=[izisviews.pr_retrieve_labres]) Access(groups=[izisviews.pr_retrieve_labres]) Source(groups=[izisviews.pr_retrieve_labres]) ============================================================================ EXECUTING CopyCriteria AFTER: TupleLimit(groups=[]) Sort(groups=[izisviews.pr_retrieve_labres AS lrs]) Project(groups=[izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1]) Join(groups=[izisviews.pr_patient_in_production AS ip, izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lrs.patientid_in = gd__1.PatientID, lrs.production = ip.production, ip.patientid = lrs.patientid_in], OUTPUT_COLS=null, IS_COPIED=true}) Join(groups=[izisviews.pr_patient_in_production AS ip, izisprod.prod_P_GeneralData AS gd__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[ip.patientid = gd__1.PatientID], OUTPUT_COLS=null, IS_COPIED=true}) Access(groups=[izisprod.prod_P_GeneralData AS gd__1]) Select(groups=[izisprod.prod_P_GeneralData AS gd__1], props={SELECT_CRITERIA=gd__1.Status = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[izisprod.prod_P_GeneralData AS gd__1]) Source(groups=[izisviews.pr_patient_in_production AS ip]) Project(groups=[X]) Source(groups=[X]) Project(groups=[izisviews.pr_patient_in_production]) Access(groups=[izisviews.pr_patient_in_production]) Source(groups=[izisviews.pr_patient_in_production]) Select(groups=[izisviews.pr_retrieve_labres AS lrs], props={SELECT_CRITERIA=lrs.varvalue = 1.0, OUTPUT_COLS=null, IS_COPIED=true}) Select(groups=[izisviews.pr_retrieve_labres AS lrs], props={SELECT_CRITERIA=lrs.resultgroup_in = 'pH-type', IS_PHANTOM=true, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[izisviews.pr_retrieve_labres AS lrs]) Project(groups=[X AS X__1]) Select(groups=[], props={SELECT_CRITERIA=izisviews.pr_retrieve_labres.resultgroup_in = 'pH-type', OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[X AS X__1]) Project(groups=[izisviews.pr_retrieve_labres]) Access(groups=[izisviews.pr_retrieve_labres]) Source(groups=[izisviews.pr_retrieve_labres]) ============================================================================ EXECUTING CleanCriteria AFTER: TupleLimit(groups=[], props={MAX_TUPLE_LIMIT=100, OUTPUT_COLS=null}) Sort(groups=[izisviews.pr_retrieve_labres AS lrs], props={SORT_ORDER=ORDER BY lrs.datetime, lrs.entertime DESC, UNRELATED_SORT=true, OUTPUT_COLS=null}) Project(groups=[izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1], props={PROJECT_COLS=[gd__1.PatientID, lrs.datetime, lrs.varvalue AS phtype], OUTPUT_COLS=null}) Join(groups=[izisviews.pr_patient_in_production AS ip, izisviews.pr_retrieve_labres AS lrs, izisprod.prod_P_GeneralData AS gd__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[lrs.patientid_in = gd__1.PatientID, lrs.production = ip.production, ip.patientid = lrs.patientid_in], OUTPUT_COLS=null, IS_COPIED=true}) Join(groups=[izisviews.pr_patient_in_production AS ip, izisprod.prod_P_GeneralData AS gd__1], props={JOIN_TYPE=INNER JOIN, JOIN_STRATEGY=NESTED_LOOP, JOIN_CRITERIA=[ip.patientid = gd__1.PatientID], OUTPUT_COLS=null, IS_COPIED=true}) Access(groups=[izisprod.prod_P_GeneralData AS gd__1], props={SOURCE_HINT=null, MODEL_ID=Schema name=izisprod, nameInSource=null, uuid=mmuuid:095c2821-e16b-4f9d-9c78-0d2d20018d04, OUTPUT_COLS=null}) Select(groups=[izisprod.prod_P_GeneralData AS gd__1], props={SELECT_CRITERIA=gd__1.Status = 1, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[izisprod.prod_P_GeneralData AS gd__1], props={OUTPUT_COLS=null}) Source(groups=[izisviews.pr_patient_in_production AS ip], props={NESTED_COMMAND=SELECT X.*, izisviews.pr_patient_in_production.patientid AS patientid FROM (EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid)) AS X, SYMBOL_MAP={ip.patientid=izisviews.pr_patient_in_production.patientid, ip.production=X.production}, ACCESS_PATTERNS=[Access Pattern: Unsatisfied [ip.patientid] History [[ip.patientid]]], OUTPUT_COLS=null}) Project(groups=[X], props={PROJECT_COLS=[izisviews.pr_patient_in_production.patientid AS patientid, X.production], OUTPUT_COLS=null}) Source(groups=[X], props={NESTED_COMMAND=EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid), SYMBOL_MAP={X.production=izisviews.pr_patient_in_production.production}, OUTPUT_COLS=null}) Project(groups=[izisviews.pr_patient_in_production], props={PROJECT_COLS=[izisviews.pr_patient_in_production.production], OUTPUT_COLS=null}) Access(groups=[izisviews.pr_patient_in_production], props={SOURCE_HINT=null, OUTPUT_COLS=null}) Source(groups=[izisviews.pr_patient_in_production], props={VIRTUAL_COMMAND=EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid), NESTED_COMMAND=EXEC izisviews.pr_patient_in_production(izisviews.pr_patient_in_production.patientid), PROCESSOR_PLAN=ProcedurePlan: PROGRAM counter 0 0: ASSIGNMENT INSTRUCTION: VARIABLES.production 1: ASSIGNMENT INSTRUCTION: izisviews.pr_patient_in_production.production 2: RETURN , OUTPUT_COLS=null}) Select(groups=[izisviews.pr_retrieve_labres AS lrs], props={SELECT_CRITERIA=lrs.varvalue = 1.0, OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[izisviews.pr_retrieve_labres AS lrs], props={NESTED_COMMAND=SELECT X.*, izisviews.pr_retrieve_labres.patientid_in AS patientid_in, izisviews.pr_retrieve_labres.production AS production, izisviews.pr_retrieve_labres.resultgroup_in AS resultgroup_in FROM (EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in)) AS X, SYMBOL_MAP={lrs.patientid_in=izisviews.pr_retrieve_labres.patientid_in, lrs.production=izisviews.pr_retrieve_labres.production, lrs.resultgroup_in=izisviews.pr_retrieve_labres.resultgroup_in, lrs.varvalue=X__1.varvalue, lrs.datetime=X__1.datetime, lrs.entertime=X__1.entertime}, ACCESS_PATTERNS=[Access Pattern: Unsatisfied [lrs.production, lrs.patientid_in] History [[lrs.patientid_in, lrs.production, lrs.resultgroup_in]]], OUTPUT_COLS=null}) Project(groups=[X AS X__1], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.patientid_in AS patientid_in, izisviews.pr_retrieve_labres.production AS production, izisviews.pr_retrieve_labres.resultgroup_in AS resultgroup_in, X__1.varvalue, X__1.datetime, X__1.entertime], OUTPUT_COLS=null}) Select(groups=[], props={SELECT_CRITERIA=izisviews.pr_retrieve_labres.resultgroup_in = 'pH-type', OUTPUT_COLS=null, IS_COPIED=true}) Source(groups=[X AS X__1], props={NESTED_COMMAND=EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in), SYMBOL_MAP={X__1.varvalue=izisviews.pr_retrieve_labres.varvalue, X__1.datetime=izisviews.pr_retrieve_labres.datetime, X__1.entertime=izisviews.pr_retrieve_labres.entertime}, OUTPUT_COLS=null}) Project(groups=[izisviews.pr_retrieve_labres], props={PROJECT_COLS=[izisviews.pr_retrieve_labres.varvalue, izisviews.pr_retrieve_labres.datetime, izisviews.pr_retrieve_labres.entertime], OUTPUT_COLS=null}) Access(groups=[izisviews.pr_retrieve_labres], props={SOURCE_HINT=null, OUTPUT_COLS=null}) Source(groups=[izisviews.pr_retrieve_labres], props={VIRTUAL_COMMAND=EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in), NESTED_COMMAND=EXEC izisviews.pr_retrieve_labres(izisviews.pr_retrieve_labres.patientid_in, izisviews.pr_retrieve_labres.production, izisviews.pr_retrieve_labres.resultgroup_in), PROCESSOR_PLAN=ProcedurePlan: PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null 1: IF INSTRUCTION: izisviews.pr_retrieve_labres.production = TRUE PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null ELSE PROGRAM counter 0 0: CREATE CURSOR RESULTSET INSTRUCTION - null 2: CREATE CURSOR RESULTSET INSTRUCTION - null 3: CREATE CURSOR RESULTSET INSTRUCTION - null , OUTPUT_COLS=null}) ============================================================================ EXECUTING PlanJoins