Complex sentence: He saw service in India and stayed there until 1947, he was demobbed in 1949 having reached the rank of captain.
Split into simpler sentences: He saw service in India and stayed there until 1947. In 1949 he was demobalized, having reached the rank of captain.