oracle sql
来源:互联网 发布:荆门市网络作文大赛 编辑:程序博客网 时间:2024/05/16 18:13
select * from(
select a.*
from attendance a,period p,shift_period sp,user_shift us
where a.userId=#userId# and us.userId=a.userId and p.periodId=sp.periodId and us.shiftId=sp.shiftId
and to_char(attendanceTime,'yyyy-MM-dd')=to_char(sysdate, 'yyyy-mm-dd')
and (to_date(to_char(attendanceTime,'hh24:mi'),'hh24:mi') between to_date(p.checkInTime1,'hh24:mi') and to_date(p.checkInTime2,'hh24:mi')) order by a.attendanceTime asc)
where rownum < 2
order by rownum asc
select a.*
from attendance a,period p,shift_period sp,user_shift us
where a.userId=#userId# and us.userId=a.userId and p.periodId=sp.periodId and us.shiftId=sp.shiftId
and to_char(attendanceTime,'yyyy-MM-dd')=to_char(sysdate, 'yyyy-mm-dd')
and (to_date(to_char(attendanceTime,'hh24:mi'),'hh24:mi') between to_date(p.checkInTime1,'hh24:mi') and to_date(p.checkInTime2,'hh24:mi')) order by a.attendanceTime asc)
where rownum < 2
order by rownum asc
- sql----oracle
- oracle sql
- Oracle SQL
- Oracle SQL
- Oracle SQL
- sql oRACLE
- oracle sql
- Oracle sql
- Oracle sql
- oracle sql
- oracle sql
- ORACLE-SQL
- Oracle SQL
- Oracle SQL
- oracle.sql
- oracle sql
- Oracle Sql
- SQL-oracle
- PythonChanllenge第六关:Channel
- hdu 3917 Road constructions 最大权闭合图
- PostGIS,Postgre DBMS,Mapserver构建免费的WebGIS应用
- 从那一天起,你就成了我的全部
- 错误21002:[SQL-DMO]用户"xxx"已经存在
- oracle sql
- 防止反汇编
- 【转】正则表达式 匹配中文,英文字母和数字及_的写法!同时控制长度
- 关于裸设备的知识
- 鸡蛋饭
- 从SEO优化员看SEO行业病态
- 回归自然
- 做好seo必须要懂的基础知识
- select下拉选项 只读效果