可以将两个查询结果再合成一个表吗?

asdfasdfdfas 2005-12-27 09:34:15
select up_user_name,up_user_jb,sum(totalpay)as 总积分,sum(totalpoint) as 总稿酬,count(cont_id) as 发表文章数 from cont

where up_date>= #2005-11-25# and up_date <= #2005-12-26# Group by up_user_name , up_user_jb

select up_user_name ,count(cont_id) from cont where up_date>= '2005-11-25' and up_date <= '2005-12-26' and totalpoint is

not null Group by up_user_name


可以将这两条查询语句再合成一个新表吗?
...全文
91 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
soloist007 2005-12-28
  • 打赏
  • 举报
回复
select
需要的东东
from
(select ... from ... where ... ) A,
(select ... from ... where ... ) B
where
A.XXX = B.XXX
  • 打赏
  • 举报
回复
just a joke

我没看你写的,随手了一下,要是有误解的话,误怪
  • 打赏
  • 举报
回复
union all
asdfasdfdfas 2005-12-27
  • 打赏
  • 举报
回复
那这个条件怎样写,up_user_name是一样的,但两条都是查询的结果,该怎样连接这两条查询结果呢?
银狐被占用 2005-12-27
  • 打赏
  • 举报
回复
用条件关联,都可以实现。

28,404

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧