我对此很陌生。我需要在此查询的单独列中了解 t.1start 和 t1.finish 之间的天数差异。
谢谢,路易
SELECT ROW_NUMBER() OVER(ORDER BY TOWN) AS 'row',
T1.Surname,
T1.Forename,
T1.Town,
T1.Description,
T1.Sex,
T1.DOB,
T1.start,
T1.finish,
FROM dbo.viewServiceContractFull T1
WHERE
T1.finish>='2013/01/01'
and
T1.finish<='2013/01/31'
我现在如何让某些城镇出现在查询中?