网页资讯视频图片知道文库贴吧地图采购
进入贴吧全吧搜索

 
 
 
日一二三四五六
       
       
       
       
       
       

签到排名:今日本吧第个签到,

本吧因你更精彩,明天继续来努力!

本吧签到人数:0

一键签到
成为超级会员,使用一键签到
一键签到
本月漏签0次!
0
成为超级会员,赠送8张补签卡
如何使用?
点击日历上漏签日期,即可进行补签。
连续签到:天  累计签到:天
0
超级会员单次开通12个月以上,赠送连续签到卡3张
使用连续签到卡
12月02日漏签0天
sql吧 关注:57,235贴子:144,865
  • 看贴

  • 图片

  • 吧主推荐

  • 游戏

  • 2回复贴,共1页
<<返回sql吧
>0< 加载中...

一种特殊的查寻

  • 只看楼主
  • 收藏

  • 回复
  • spycing
  • 初级粉丝
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
method   from   num
飞机      中国  8
轮船      美国  18
轮船      日本  28
轮船      中国  38
飞机      中国  48
飞机      中国  58
我如果能查寻出下面这样的
坐飞机来的        坐轮船来的       来自
   次数                     次数            中国
   次数                     次数            美国


  • 59.61.133.*
快试试吧,
可以对自己使用挽尊卡咯~
◆
◆
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
select 飞机=isnull(飞机,0),轮船=isnull(轮船,0),froms from
(select 飞机=(select sum(num) from a where method='飞机' 
and froms=b.froms ),
轮船=(select sum(num) from a where method='轮船'
and froms=b.froms),froms from a b group by froms) b


2025-12-02 22:42:48
广告
不感兴趣
开通SVIP免广告
  • 59.33.124.*
快试试吧,
可以对自己使用挽尊卡咯~
◆
◆
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
ID: Keywords: 

如何利用SQL查询返回庞大的整数序列表
http://www.etoow.com/html/2007-08/1186920041.html

SQL Server 2005数据库查询中使用CTE
http://www.etoow.com/html/2007-03/1174784159.html

SQL Server:分布式查询
http://www.etoow.com/html/2007-08/1186649336.html

使用SQL子选择来合并查询
http://www.etoow.com/html/2007-03/1174783337.html

MS SQL Server查询优化方法
http://www.etoow.com/html/2007-03/1174784646.html

SQL查询FOR XML[RAW|AUTO|EXPLICIT]
http://www.etoow.com/html/2007-08/1186664971.html

如何使用SQL Server嵌套子查询
http://www.etoow.com/html/2007-09/1189905426.html

SQL中查询数据表字段名称的查询语句
http://www.etoow.com/html/2007-03/1174783311.html

查询分析器设置断点单步调试存储过程
http://www.etoow.com/html/2007-04/1176204422.html

用SQL 查询重复记录
http://www.etoow.com/html/2007-08/1186746135.html

如何使用SQL Server数据库嵌套子查询
http://www.etoow.com/html/2007-03/1174781950.html

SQL的3种连接查询
http://www.etoow.com/html/2007-08/1186583294.html

教你在SQL Server中由原子建立分子查询
http://www.etoow.com/html/2007-04/1176204599.html

SQL查询语句精华使用简要
http://www.etoow.com/html/2007-05/1178072890.html

索引对查询条件顺序的影响
http://www.etoow.com/html/2007-06/1182563225.html

取出相应用户分类名以及字段id的SQL语句(两表查询)
http://www.etoow.com/html/2007-08/1186902884.html

高级自定义查询、分页、多表联合存储过程(二)
http://www.etoow.com/html/2007-02/1171611451.html

加速SQL查询的特征函数法
http://www.etoow.com/html/2007-03/1174784467.html

SQL Server查询语句的使用
http://www.etoow.com/html/2007-06/1182556907.html

SQL Server对文件内容进行全文检索的查询
http://www.etoow.com/html/2007-02/1171611773.html

SQL Server对文件进行全文检索的查询
http://www.etoow.com/html/2007-03/1174997410.html

在SQL Server中通过原子建立分子查询
http://www.etoow.com/html/2007-03/1174782057.html

SQL多表格查询合并至单一声明的常用方式
http://www.etoow.com/html/2007-11/1194515849.html

T-SQL查询中使用的函数之系统函数
http://www.etoow.com/html/2007-05/1178091286.html

在SQL Server中如何将两个日期之间的工作日作为查询条件
http://www.etoow.com/html/2007-08/1186659532.html


登录百度账号

扫二维码下载贴吧客户端

下载贴吧APP
看高清直播、视频!
  • 贴吧页面意见反馈
  • 违规贴吧举报反馈通道
  • 贴吧违规信息处理公示
  • 2回复贴,共1页
<<返回sql吧
分享到:
©2025 Baidu贴吧协议|隐私政策|吧主制度|意见反馈|网络谣言警示