データベースの行の値が文字列のグループと一致するかどうかを選択する効率的な方法
SELECT id FROM tablename where
LeadStatus like "%Contact Attempt 1%" or
LeadStatus like "%Contact Attempt 2%" or
LeadStatus like "%Contact Attempt 3%" or
LeadStatus like "%Contact Attempt 4%" or
LeadStatus like "%Contact Attempt 5%" or
LeadStatus like "%Contact Attempt 6%" or
LeadStatus like "%Contact Attempt 7%" or
LeadStatus like "%Call Back/Follow-up%" or
LeadStatus like "%Working%" or
LeadStatus like "%Credit Pulled%" or
LeadStatus like "%Selected other Lender%" or
LeadStatus like "%Pre-Approved%" or
LeadStatus like "%Application Taken/Sent%" or
LeadStatus like "%Application Received%" or
LeadStatus like "%Submitted%" or
LeadStatus like "%Funded%" or
LeadStatus like "%Future Opportunity%" or
LeadStatus like "%Manager Review%"
私が欲しいものは十分に明確だと思いますか?
注 :LeadStatus
値は自分の制御下にない API からフェッチされるため、変更できません