I have a table like below:
ID....LClass....UClass
1..........1............10
2..........8............20
3..........21..........30
How can I determine that the ranges for ID 1 and ID 2 overlap? I have thought of:
selecting each value into a variable and find out if it is between any of the ranges. This will be difficult as the actual table is quite large.
There may be some sql function to handle this?