MySQL社区

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索

一个数据库面试题,有点懵了,求救

查看数: 2373 | 评论数: 1 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2016-9-21 14:36

正文摘要:

如上图,这几题咋做呢?

回复

fangsh111 发表于 2016-10-17 16:22:56
1、select * from (select * from jufei wehrfe a 51<= expenses<100 and month in (201006,201007,201008) ) t1 ,
(select * from jufei where expenses=0 and  month in  (201006 ,201007) ) t2 where t1.msisdn=t2.msisdn  ;

2、select * fron jifei wehre moutn  between 201001 and 201010 and substr(msisdn,-4) in (1133,4646,9999);

4、select discont(*) from jifei where  substr(mount,-2) in (09,10) and expenses > 30;

QQ|申请友链|小黑屋|Archiver|手机版|MySQL社区 ( 京ICP备07012489号   
联系人:周生; 联系电话:13911732319

GMT+8, 2024-6-26 06:33 , Processed in 0.068114 second(s), 31 queries , Gzip On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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