ms sql server视图创建一问 select table1.id ,(select count(*) from table2,table1 T1 where table2.typeid = T1.id and T1.id = table1.id) as availnum from table1要求table1中id是唯一的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select table1.*, x.availnum from table1 inner join (select count(typeid)as availnum ,typeid from table2 group by typeid) as x on table1.id = x.typeid 字符串替换的问题 建立任务的一些疑惑 如何验证登录Sql服务器的登录名已存在? OPENROWSET 问题 如何定时地将一台sql server的数据库 备份到另一台sql server上去呀 搜索的问题,高手的话,进来看看!!!!急在线等,解决马上给分 特定条件的数据求和 SQL server 2005安装问题 一个两层查询的问题。。请高手们帮忙看看。。50分。。。 sql server 7.0 问题? 关于access中的"自动编号"数据类型的问题 更改redolog大小问题?
select table1.*, x.availnum from table1 inner join (select count(typeid
)as availnum ,typeid from table2 group by typeid
) as x on table1.id = x.typeid