On May 2, 1982, during the Falklands War, the British nuclear-powered submarine HMS Conqueror sank the Argentine cruiser General Belgrano. Two torpedoes struck the ship, causing it to sink in less than 30 minutes, Since Argentina had nothing to hunt submarines they kept the rest of their Navy bottled up in port. Without reinforcements Argentina lost that war.
That was the last time a submarine sank a ship until a United States submarine sank the Iranian frigate IRIS Dena off the southern coast of Sri Lanka on Wednesday.
No, around 2012, a North Korean sub sank a South Korean Corvette, killing half the crew.