Karan Singh

Karan Singh

  • 1.6k
  • 64
  • 3.3k

Find duplicate row and differentiate with date

Jan 22 2018 2:11 AM
Hi any one hep me?
I have table in sql like:
RateDate                      Currency        MinLos            MaxLOS     CutOff        Availability
2018-06-01                     INR                  12                     15               0               5
2018-06-02                     INR                  12                     15               0               5
2018-06-03                     INR                  3                        13               2               4
2018-06-04                     INR                  5                        12               4               20
2018-06-05                     INR                  5                        12               4               20
2018-06-06                     INR                  8                         1                5               2
 
my out put should be like this
 RateDate                          Currency          MinLos         MaxLOS     CutOff     Availability
 2018-06-01 - 2018-06-02    INR                   12                     15                  0               5
 2018-06-03 - 2018-06-03    INR                   3                        13                 2               4
 2018-06-04 - 2018-06-05    INR                   5                        12                 4               20
 2018-06-06 - 2018-06-06    INR                   8                         1                 5                 2
Please help me ASAP. 

Answers (4)