SELECT datediff(Contract_Start_Date,Contract_End_Date) FROM testdata;
这个查询总是返回null
我的约会是
Time ID Date
TIME_101 2011-12-12
TIME_102 2011-12-13
TIME_103 2011-12-14
TIME_104 2011-12-15
TIME_105 2011-12-16
TIME_106 2011-12-19
TIME_107 2011-12-20
TIME_108 2011-12-21
TIME_109 2011-12-22
和
Contract ID Contract Start Date Contract End Date
CON_001 TIME_101 TIME_1248
CON_002 TIME_102 TIME_1249
CON_003 TIME_103 TIME_1250
CON_004 TIME_104 TIME_1251
CON_005 TIME_105 TIME_1252
CON_006 TIME_106 TIME_1253
我需要获取合同开始日期和合同结束日期之间的差异