silviadana
New member
- Local time
- Today, 05:05
- Joined
- Mar 9, 2010
- Messages
- 7
Hello
I need help with two problems in Access. I believe that they are similar but I don't know how it works
I problem: I have a table TELEPHONE(telephone_number) where telephone number is the only field. I have to find the first number that is missing
For example: suppose that I have the entries
1
2
5
7
8
9
The result for the sql that I need would be 3.
I believe that i need to do the difference between two consecutive rows and to find the first row where this difference is greater than 1
The second problem is similar I think: A table Temperatures(day, temperature) and I need to find the bigest difference between two consecutive dates
day temp
1.01 5
2.01 4
3.01 9
4.01 5
and the result would be 5
I need help with two problems in Access. I believe that they are similar but I don't know how it works
I problem: I have a table TELEPHONE(telephone_number) where telephone number is the only field. I have to find the first number that is missing
For example: suppose that I have the entries
1
2
5
7
8
9
The result for the sql that I need would be 3.
I believe that i need to do the difference between two consecutive rows and to find the first row where this difference is greater than 1
The second problem is similar I think: A table Temperatures(day, temperature) and I need to find the bigest difference between two consecutive dates
day temp
1.01 5
2.01 4
3.01 9
4.01 5
and the result would be 5
Last edited: