I have the following code which runs and I see the results for a second,and then it errors with
Msg 512, Level 16, State 1, Line 82
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
where nEventInst = tm.nStartEventInst
) as startPos
FROM tblTrip_Master tm where vpkDeviceID = '862170018835676'
The above Nested select gets the StartPosition, i also need to another nested select or join to get the End Position
Any help appreciated