You're mixing terminology. So my first question is whether LOW = Begin and HIGH = End? Also, you are using "BEG#" in multiple contexts.
I believe you just want to do regular interval overlap tests, right? The following query assumes that "start" is the begin of the interval that should not overlap with any other interval in the table, and "stop" is the end of that interval. If you are only interested in a single value, you have a point interval, i.e. start = stop. The assumption is that we have always start <= stop and begin <= end.
Code:
SELECT COUNT(*)
FROM yourTable AS n
WHERE n.begin <= stop AND n.end >= start
If the query returns a value largen than 0, you have an overlap. Alternatively, you can use "SELECT *" or whatever.
Note: there is no ROWID in your table and standardized SQL doesn't define such a constructor. That's why you can't use this in general - only on your specific DBMS.
For point intervals, you could actually write this as well:
Code:
SELECT ...
FROM yourTable AS n
WHERE point BETWEEN n.beg AND n.end