0

我有一个需要转换的 SQL 查询,但我不知道该怎么做。这就是我想要做的:

select c.case_id , c.case_seq , max( cv.case_seq)
from case c
     inner join case_ev cv
where
  c.case_id = cv.case_id
  and c.case_seq <= cv.case_seq

但我很难弄清楚如何同时执行 where 子句max ,这很关键。

如何在同一个查询中同时执行这两项操作?

4

0 回答 0