Chinaunix首页 | 论坛 | 博客
  • 博客访问: 141470
  • 博文数量: 11
  • 博客积分: 1400
  • 博客等级: 上尉
  • 技术积分: 875
  • 用 户 组: 普通用户
  • 注册时间: 2007-04-16 18:55
文章分类

全部博文(11)

文章存档

2008年(11)

我的朋友

分类: Oracle

2008-03-03 14:42:34

select max(period_name)
from gl_period_statuses gps
where substr(gps.period_name,4,4)=
(select max(substr(gps.period_name,4,4))
   from gl_period_statuses  gps
  where  gps.period_type= ( select distinct period_type
                              from  gl_periods
                             where  period_set_name='总帐期间')
                               and (gps.closing_status ='C' or gps.closing_status='O'))
and gps.period_type= ( select distinct period_type
                              from  gl_periods
                             where  period_set_name='总帐期间')
and (gps.closing_status ='C' or gps.closing_status='O')
 
在期间的打开关闭窗口有一个:最后打开的期间。但是不知道这个是怎么取到的。或者数据库中有专门这样的API.-------暂记这里,回头查查
阅读(835) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:预算的状态

给主人留下些什么吧!~~