Terrible post. I believe he only ever achieved the rank of lieutenant commander.
By 2379, Data was expected to succeed Commander Riker as first officer following Riker's promotion to captain of the USS Titan. En route to Betazed for the second phase of Riker's wedding to Counselor Troi, the Enterprise discovered B-4, one of the three prototype Soong-type androids Data had learned about years earlier, physically identical to him but having a less sophisticated positronic brain. Trying to help him become more Human, Data copied his own memories into B-4's positronic net.
Before Data could take the role of first officer of the Enterprise, the Enterprise was ordered to Romulus where a new praetor, Shinzon, had come to power. Shinzon's self-asserted good intentions, however, were soon found to be false. In reality, Shinzon was discovered to be a clone of Captain Picard and, due to genetic degeneration, he was in need of Picard's blood in order to restore his life. After Shinzon's vessel, the Scimitar, had all but destroyed the Enterprise, Shinzon planned to eliminate the crew with his thalaron radiation weapon before turning it on Earth. Though Picard was able to defeat Shinzon in hand-to-hand combat, Picard was trapped aboard the Scimitar due to damage to the Enterprise transporters. With no other option, Data elected to physically jump into the vacuum of space through a hull breach in the forward section of the Enterprise – and force his way aboard the Scimitar from the outside. Proceeding to the Scimitar bridge, Data utilized a prototype emergency transport unit concealed in his forearm, to return Picard to the Enterprise. With the thalaron radiation weapon seconds away from firing, Data used his phaser to destroy it, which resulted in the complete destruction of the Scimitar – and Data as well.