Remove first all null records from first part of time series until one value is not null and return the rest, in PostgreSQL
select * from tbl
where dt&gt;= (select min(dt) from tbl where col1 is not null or col2 is not null)