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
Contract Start Date と Contract endDate の差を取得する必要があります