【发布时间】:2012-08-17 17:36:53
【问题描述】:
我必须在 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.
请告诉我如何加入这两个表并在加入时检查上述条件。
我尝试了合并语句,但没有奏效。提前致谢。
问候, 苏迪尔
【问题讨论】:
-
你用什么代码来尝试合并?请发布您的输入数据示例以及您想要的结果。
-
每张表有多少行?
标签: sas