You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

基于条件表中的条件筛选目标数据表中的行

Alright, let's walk through this filtering task step by step. First, let's clearly present the source data and condition rules, then apply each rule to find the valid rows.

Source Data Table (Rows to Filter)

IDbusinesshas_agreementflag_type
11899YES1
11999YES2
120100YES3
121100YES1
122100NO2
abcd2300YES4
' '788NO1

Condition Rules Table (PRE-3 Condition Set)

All conditions in the same condition_id group are AND rules (must all be satisfied), and all three groups belong to the same condition_set PRE-3 — so every group's rules must pass for a row to be accepted.

condition_idcondition_setsequence_idfield_nameoperatorvalue
1PRE-31ID!=NULL
1PRE-32ID!=""
2PRE-31business!=NULL
2PRE-32business!=""
2PRE-33business>=100
3PRE-31has_agreement!=NULL
3PRE-32has_agreement!=""
3PRE-33has_agreement=...

Quick Clarifications on Ambiguities

  • The third rule in condition_id 3 uses ... as a placeholder. I'll assume this is meant to accept any non-null/non-empty value for has_agreement (since the first two rules in the group already block NULL/empty entries).
  • The row with ID ' ' (a single space) technically passes the ID != "" rule (a space isn't an empty string), but if the intent was to exclude whitespace-only IDs, this row would be rejected. I'm sticking to the literal rule for this analysis.

Filtered Result (Accepted Rows)

After applying all rules, these rows meet all criteria:

IDbusinesshas_agreementflag_type
120100YES3
121100YES1
122100NO2
abcd2300YES4
' '788NO1

Rejected Rows (Why?)

  • Rows 1 and 2: Fail the business >= 100 rule (their business value is 99, which is below the threshold).

内容的提问来源于stack exchange,提问作者Pandurang Channadasar

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.22 09:41:49