I think you do not need SQL here. All you need is to verify whether values are one of you mentioned or not, based on that rule (validation) would pass or fail.
As far as SQL is concern you can write SQL also using decode function but where are you going to put this SQL?
Hi everyone,
I’m with a table that contains 2 fields, field A and field B. Duplicate values over field A are ok and allowed while field B can only store one constant character X goes by field A. That’s why I want to build a rule to check and the rule needs to be built in SAP information Steward. So I wonder if Information Steward can recognize and execute a SQL statement like this
SELECT TABLE NAME
SELECT FIELD A, FIELD B and FIELD C. (field C is used to store count value)
Count FIELD B by FIELD A and store the count in FIELD C
IF FIELD C <> 1, output records
otherwise end.
I am looking for a SQL syntax or clause to perform the check logic against the table said above. Any thoughts? I appreciate.
by the way, it is SAP Hana Data Base table. I heard SQL clause varies by DB.