【发布时间】:2013-04-09 18:24:39
【问题描述】:
我有 3 个如下表
table_1
securityno name price
1 a11 12.12
2 z11 44.4
table_2
name identifier Mainprice
a11_bond NO34 11
z22_bond NO98 22
table_3
securityno name identifier
1 a11 NO34
2 z11 NO98
我想检查table_1 的价格是否与table_2 一致
我只想显示来自table_2 的输出table_1 数据和Mainprice 列
securityno name price Mainprice
1 a11 12.12 11
2 z11 44.4 22
我在尝试
select * from table_1 left join table_2 on table_3呢?
未能使用 3 个表。
请帮忙。
【问题讨论】:
标签: sql sql-server tsql join