sql进阶:如何查出某个日期第一列不为空的数据?

29 阅读1分钟

Sql

一、案例分析

给定某个日期列和某个数值列,按照日期列排序,查出第一列数值列不为空的数据
eg:

create table test_zhu(
       code varchar2(100),
       f001d date,
       f002n int,
       f003n int
);

insert