Hello - I'm just looking for a bit of direction here. I have a table with two fields that looks as follows:
What I need to do, is evaluate all the other stationid's that equal or fall between 12345-12350. So in this example, I would have a return of:
12345
12346
12350
Ranges are always in an increment of +1.
I have a query that breaks out the start and end of the ranges into two separate fields - I'm just not sure what to do with it now
Any ideas you may have are greatly appreciated. I always learn something from you!
TIA,
Elysynn
Code:
Node | StationID
Node1 | 12345
Node1 | 12346
Node1 | 12345-12350
Node1 | 12370
Node1 | 12350
What I need to do, is evaluate all the other stationid's that equal or fall between 12345-12350. So in this example, I would have a return of:
12345
12346
12350
Ranges are always in an increment of +1.
I have a query that breaks out the start and end of the ranges into two separate fields - I'm just not sure what to do with it now
Code:
SELECT tblQfinitiBackendExtParsed.Node, Left([Node],5) AS NodeGroup, Left([StationID],5) AS RangeStart, Right([StationID],5) AS RangeEnd
FROM tblQfinitiBackendExtParsed
GROUP BY tblQfinitiBackendExtParsed.Node, Left([Node],5), Left([StationID],5), Right([StationID],5), tblQfinitiBackendExtParsed.StationID
HAVING (((Left([Node],5))="Node1") AND ((Mid([StationID],6,1))="-"));
Any ideas you may have are greatly appreciated. I always learn something from you!
TIA,
Elysynn