Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
DataView select rows filtering by two column values by Chris Schaller
id: System.Int64
customer_type_id: System.Int64
covered_patient_type: System.String
expectation: System.String

Filter By one column: customer_type_id='64501'
ID:1629, expectation:filtered out, customer_type_id:64501, covered_patient_type:Outpatient
ID:1628, expectation:selected, customer_type_id:64501, covered_patient_type:Inpatient
ID:1627, expectation:filtered out, customer_type_id:64501, covered_patient_type:Outpatient
ID:1626, expectation:selected, customer_type_id:64501, covered_patient_type:Inpatient
ID:1625, expectation:filtered out, customer_type_id:64501, covered_patient_type:Outpatient

Filter By two columns: customer_type_id='64501' and covered_patient_type='Inpatient'
ID:1628, expectation:selected, customer_type_id:64501, covered_patient_type:Inpatient
ID:1626, expectation:selected, customer_type_id:64501, covered_patient_type:Inpatient

What if covered_patient_type is an enum?
id: System.Int64
customer_type_id: System.Int64
covered_patient_type: System.String
expectation: System.String

Filter By one column: customer_type_id='64501'
ID:1629, expectation:filtered out, customer_type_id:64501, covered_patient_type:Outpatient
ID:1628, expectation:selected, customer_type_id:64501, covered_patient_type:Inpatient
ID:1627, expectation:filtered out, customer_type_id:64501, covered_patient_type:Outpatient
ID:1626, expectation:selected, customer_type_id:64501, covered_patient_type:Inpatient
ID:1625, expectation:filtered out, customer_type_id:64501, covered_patient_type:Outpatient

Filter By two columns: customer_type_id='64501' and covered_patient_type='Inpatient'
ID:1628, expectation:selected, customer_type_id:64501, covered_patient_type:Inpatient
ID:1626, expectation:selected, customer_type_id:64501, covered_patient_type:Inpatient
Cached Result
Last Run: 9:36:36 am
Compile: 0.293s
Execute: 0.22s
Memory: 19.84Mb
CPU: 0.513s