Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

MS SQL SERVER 2014: Get Number of Days Between Occurrences

Language: Layout:
View schema
Execution time: 0,02 sec, rows selected: 8, rows affected: 4, absolute service time: 0,16 sec 
latest |  history
   id range days
1 1 2017-02-14 to 2017-03-02 16 days
2 2 2017-03-02 to 2017-03-23 20 days
3 3 2017-03-23 to 2017-05-10 47 days
4 4 2017-05-10 to 2017-05-24 13 days
   id range days
1 1 2017-02-14 to 2017-03-02 16 days
2 2 2017-03-02 to 2017-03-23 21 days
3 3 2017-03-23 to 2017-05-10 48 days
4 4 2017-05-10 to 2017-05-24 14 days

    
                
λ
.NET NoSQL database for rapid development