SELECT A.TDJRQ,A.QSMC,A.ZDS,B.ZDS [ZRZDS] FROM TABLE
INNER JOIN
(
SELECT DATEADD(DAY,1,TDJRQ) TDJRQ,QSMC,ZDS FROM TABLE WHERE TDJRQ>=DATEADD(DAY,-1,开始日期) and TDJRQ<=DATEADD(DAY,-1,结算日期)) B
ON A.QSMC=B.QSMC AND A.TDJRQ=B.TDJRQ WHERE A.TDJRQ>=开始日期 and A.TDJRQ<=结算日期