来源:https://stackoverflow.com/questions/64025450/select-first-in-and-last-out-time-different-date-and-null-condition-from-dat 标签 sql sql-server datetime window-functions gaps-and-islands