Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  Rules, Regulations, and FAQs    How to Create a Program Using Multiple ORs Statements
Go
New
Search
Notify
Tools
Reply
  
How to Create a Program Using Multiple ORs Statements
 Login/Join
 
Member
posted
Hi All,
I have a question regarding using multiple ORs statements. Below is my SQL query

DECLARE @INDX AS CHAR(4)
SELECT @INDX = '7P'

SELECT COUNT(DISTINCT FIELD) FROM TABLE
WHERE INDEX01 = @INDX OR INDEX02 = @INDX OR INDEX03 = @INDX OR INDEX04 = @INDX OR INDEX05 = @INDX OR INDEX06 = @INDX OR INDEX07 = @INDX
OR INDEX08 = @INDX OR INDEX09 = @INDX OR INDEX10 = @INDX OR INDEX11 = @INDX OR INDEX12 = @INDX OR INDEX13 = @INDX OR INDEX14 = @INDX
OR INDEX15 = @INDX OR INDEX16 = @INDX OR INDEX17 = @INDX OR INDEX18 = @INDX OR INDEX19 = @INDX OR INDEX20 = @INDX

I don't know how to create a program in WebFocus when using multiple ORs.

Thanks in Advance

Sincerely
Harry
 
Posts: 1 | Registered: March 31, 2020Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  Rules, Regulations, and FAQs    How to Create a Program Using Multiple ORs Statements

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.