解决方案 »
- oracle指定job号建立job,job号不对
- 查询2个日期之间记录的问题
- 求解释:lpad(nvl(to_number(substr(max(s.begin_date),5,4)),0)+1,4,0)
- oracle import/exp 杂难问题
- 一个sql问题。
- 简单的查询问题!!!!!!!
- 小菜鸟 求教下面这句语句是什么意思?
- oracle 中的get_dmmc()
- 感觉自己的oracle805还可以,问题是现在要用817,安装了一个,感觉完全不一样??
- oracle可以导出图片数据到本地并自定义本地图片命名方式吗?
- 导入oracle备份数据dmp后序列翻倍增加了。。
- ORACLE表字段有中文和字母2种,怎样安英文字母顺序排序;
2 (select max(a.money) from b a where a.tim < b.tim and a.what is not null and a.what <> 0 and b.name=a.name)
3 /
6 rows updated
SQL> select * from b;
NAME PLACE TIM WHAT MONEY LAST
---------- -------------------- ----------- -------------------- ---------- ----------
1 超市 2012/4/13 1 12 13
1 超市 2012/4/11 1 13
1 超市 2012/4/10 0 14
2 学校 2012/4/7 1 16
2 学校 2012/4/16 1 31 16
2 学校 2012/4/26 1 12 31
6 rows selected
(select max(a.money) from b a where a.tim=(select max(c.tim) from b c where c.tim<b.tim and c.what <> 0)
and a.what is not null and b.name=a.name and a.place=b.place)
/