我必须在 SAS 中执行以下逻辑:
If
the product field in Client_lookup table is ‘DC’
and if the client_nbr field in Client_lookup table matches with the client_nbr column in Gforce_Auth table,
then
the first six digits of merchant_number field in Gforce_Auth tables will be compared with the first six digit of current_account_number in the Gforce_Auth tables.
If it becomes equal, then the In store column = ‘Y’ otherwise it is set to ‘N’. The in store column will be set to null if the client _nbr field is not same in both the tables.
请让我知道如何加入这两个表并在加入时检查上述条件。
我尝试了合并语句,但没有奏效。提前致谢。
问候, 苏迪尔