Need explanation for the below query. While committing the outer transaction T , the row has been already deleted by nested transaction. But still the value with ID 2 is selected and displayed.
BEGIN TRAN T
SELECT * from tbl_types where ID=2
BEGIN TRAN nested
DELETE from tbl_types where ID=2
COMMIT TRAN nested
COMMIT TRAN T