I have a table that shows data reported during the period of one month:
DATA REGISTRO
01/06/2016
02/06/2016
03/06/2016
04/06/2016
05/06/2016 50
06/06/2016 60
07/06/2016 10
08/06/2016 20
09/06/2016 50
10/06/2016 60
11/06/2016 100
12/06/2016 50
13/06/2016 10
14/06/2016 30
15/06/2016 10
16/06/2016 50
17/06/2016 10
18/06/2016 30
19/06/2016 30
20/06/2016 40
21/06/2016 50
22/06/2016 30
23/06/2016 10
24/06/2016 50
25/06/2016 10
26/06/2016 30
27/06/2016 30
28/06/2016 40
29/06/2016 50
30/06/2016 60
I need to divide the first record by the last, the problem and that the record can start on any date, examples:
DATA REGISTRO
01/06/2016
02/06/2016 30
03/06/2016 20
04/06/2016 55
05/06/2016 50
06/06/2016 60
07/06/2016 10
DATA REGISTRO
01/06/2016
02/06/2016
03/06/2016 20
04/06/2016 55
05/06/2016 50
06/06/2016 60
07/06/2016 10
Likewise the last. That is, I would need to be able to identify which is the first record and which is the last one and divide one by the other.