Sql select子句中的子select及其值一起使用
是否有一种方法可以返回子选择并返回依赖于此字段的操作 例如,我可以这样做:Sql select子句中的子select及其值一起使用,sql,sql-server,Sql,Sql Server,是否有一种方法可以返回子选择并返回依赖于此字段的操作 例如,我可以这样做: select a, (select top 1 b from b) as b, (a * b) as c from a 将子查询放入from子句中: select a.a, b.b, (a.a * b.b) as c from a cross join (select top 1 b from b) b; 将子查询放入from子句中: select a.a, b.b, (a.a * b.b) as c fr
select a, (select top 1 b from b) as b, (a * b) as c
from a
将子查询放入
from
子句中:
select a.a, b.b, (a.a * b.b) as c
from a cross join
(select top 1 b from b) b;
将子查询放入
from
子句中:
select a.a, b.b, (a.a * b.b) as c
from a cross join
(select top 1 b from b) b;
你使用哪种数据库管理系统?你使用哪种数据库管理系统?