我有一个带字段的表
Hour, PathId, Duration, Event, CellId, Channel
我有 50 多个 CellId。每个 CellId 有四个 PathId(即 0、1、2、3)。每个 PathId 都有许多事件和持续时间。现在我想显示每个 CellId 的前 10 条记录(每个 PathId)。
样品表
样本输出
sql-server greatest-n-per-group
greatest-n-per-group ×1
sql-server ×1