【发布时间】:2015-07-13 17:10:07
【问题描述】:
我有两个表,t1 和 t2,与 ID 字段连接 我需要测试一下-
1. t1.ROE is 1 when t2.Currency1 = t2.Currency2
2. t1.ROE is equal to t2.ROE, otherwise
请帮我为它生成一个脚本。
【问题讨论】:
-
欢迎来到stackoverflow。请阅读How to Ask。提示:向我们展示您已经尝试过的内容。
标签: sql sql-server where