我有一个查询显示一位客户的第二个结果。我现在需要做的是显示特定列表中每个客户的第二个结果(例如 20 个不同的客户)。
我该怎么做?MS SQL2000 通过 SSMS 2005
1 个客户的当前查询是
SELECT TOP 1 link_to_client, call_ref
FROM
(
SELECT TOP 2 link_to_client, call_ref
FROM calls WITH (NOLOCK)
WHERE link_to_client IN ('G/1931')
AND call_type = 'PM'
ORDER BY call_ref DESC
) x
ORDER BY call_ref
谢谢