Anandkumar-SQL_Developer (7/25/2016)
Hi this code also work :SELECT Value
FROM
#first_nonzero
WHERE %%PhysLoc%% >=
(
SELECT MIN(%%PhysLoc%%) FROM #first_nonzero WHERE VALUE > 0
)
Not necessarily, the physical location of a row might not have the desired order.