Excel精英培训网

 找回密码
 注册
数据透视表40+个常用小技巧,让你一次学会!
楼主: mn860429

SQL系列练习【练习八、字段有空值时的计算null】

  [复制链接]
发表于 2011-1-17 11:18 | 显示全部楼层
我搞了一个麻烦的。

select * from [一月$] where 数学 is not null and 语文 is not null and 英语 is not null
excel精英培训的微信平台,每天都会发送excel学习教程和资料。扫一扫明天就可以收到新教程
回复

使用道具 举报

发表于 2011-1-17 11:19 | 显示全部楼层
想不到竟然这么简单,
select * from [一月$] where 语文+数学+英语
回复

使用道具 举报

发表于 2011-1-17 15:56 | 显示全部楼层
回复

使用道具 举报

发表于 2011-1-21 16:56 | 显示全部楼层
select * from [一月$] where 语文 is not null and 数学 is not null and 英语 is not null
回复

使用道具 举报

发表于 2011-1-21 16:58 | 显示全部楼层
继续学习{:041:}
回复

使用道具 举报

发表于 2011-2-18 17:40 | 显示全部楼层
第二次来做,还是写出了这样的代码
  1. select *
  2.   from [一月$]
  3. where 语文 is not null
  4.    and 数学 is not null
  5.    and 英语 is not null
复制代码
关于对null值的处理,始终还是没有理解。
回复

使用道具 举报

发表于 2011-3-8 15:16 | 显示全部楼层
无法形容的激动
回复

使用道具 举报

发表于 2011-3-10 19:13 | 显示全部楼层
have a look, thanks
回复

使用道具 举报

发表于 2011-6-9 13:00 | 显示全部楼层
好好学习,天天向上。
回复

使用道具 举报

发表于 2011-6-12 18:52 | 显示全部楼层
看看
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )

GMT+8, 2025-8-15 07:35 , Processed in 0.647984 second(s), 4 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表