我有一张包含如下数据的表格

我想要每组的第二个最高开始日期,其中状态为 C。例如,答案应该是
1 2015-05-01
2 2015-05-01
3 2015-06-01
在 bigquery 中是否有更简单的方法来执行此操作?
我想实现类似的东西
select * from table1
where not exists (select 1 from table2 where
table1.col1 = table2.col1 and table1.col2 = table2.col2)
Run Code Online (Sandbox Code Playgroud)
我无法在 BQ 中实现这一点。对于完成这项工作的任何帮助,我们将不胜感激。