Okay I have solved many problems
I now need to reference the previous record to make a calculation. A dummy database is shown below.
day
9 <<<(first record)
10
11
12
The code for this would look something like this.
--code--
if (previous_record != null or does not exist){
current_record = previous_record + 1
}else{
current_record = 9
}
--end code--
summary (need to know how to)
- referencing previous and next record
- detect nulls or undefined or non-existing without crashes
Any solution or designs are welcomed
I now need to reference the previous record to make a calculation. A dummy database is shown below.
day
9 <<<(first record)
10
11
12
The code for this would look something like this.
--code--
if (previous_record != null or does not exist){
current_record = previous_record + 1
}else{
current_record = 9
}
--end code--
summary (need to know how to)
- referencing previous and next record
- detect nulls or undefined or non-existing without crashes
Any solution or designs are welcomed