Complex sentence: Unlike the Warrant Officers, the Petty Officers had no job security and could be demoted by the Captain for negligence or lose his rating on moving to a new ship.
Split into simpler sentences: Unlike the Warrant Officers, the Petty Officers had no security in his rank; the Captain could demote a Petty Officer for negligence. A Petty Officer could also lose his rating on moving to a new ship.