Not sure how to do this as I've had fish that lived for what I would consider a long lifetime for that particular species such as black skirt tetras that I had for 7 years before they started dying one by one. Neons that lived for around 4 & 1/2 years before doing the same thing. A pair of marble koi angels that I had for just over 7 years but I had bought them as adults (mated pair) so I really couldn't tell you their true age, a deformed golden wonder killiefish (spinal deformity) that although he only lived for about a year and a half, probably wouldn't have a long lifespan anyway as his spine got worse as he aged...platies, guppies, bettas that lived for 3 years or so each???
So...freshwater fish that have died due to my own mistakes.... another golden wonder killifish that swam up a broken intake tube that I was going to replace in the morning. The tube broke off when I was cleaning it one night, the stores were closed and I figured it would be fine until morning. Go figure. An entire tank wipe-out (total 11 fish) due to buying some cheap gravel that the color coating was flaking off and I didn't replace it....just kept gravel vacuuming it out. ((Stupid thing to do...)) A gold nugget pleco that became entangled in some java moss and suffocated when the moss wrapped around his gill plates (didn't know that could happen), two male swordtails that kept fighting each other and eventually succumbed to fin rot. Two female rams that the male killed off before I could remove them (not all at one time, each female was tried and replaced when he killed her), one female ram that jumped out and my dog ate

! A few fish that died for no apparent reason, about 4 guppies, 5 neons, 1 dwarf gourami, 2 very young black lace angels. Can't forget the fish that my blood parrot ate, 2 zebra danios, 3 of the genetically altered danios (they skipped over the divider) and about 20 shelldweller fry that made it under the divider....
If you are going to count fry then the count is going to go way up as I killed off several batches of angel fry when first learning how to care for them, plus 3 batches of ram fry that the male just kept chowing down on.
Saltwater side, had a tank wipe-out because of hurricanes, lost numerous corals, snails, shrimp, crabs, other inverts, clams and 4 fish. Also had a lionfish die because of a tank busting. Lost an elbili angel to ich along with two royal grammas (not all at the same time). One blue devil damsel that was being beaten to death by other fish and who I could not catch because of all the rocks. A firefish that got a broken jaw when it ran into a rock. (Poor little thing, you could see his jaw was out of alignment, could see blood too, he tried to eat but then died shortly afterwards)
Almost forgot, a newly bought green chromis that when released into the tank swam right into an anemone!
Not going to count the large amount of fish that I have sold, or returned to the LFS or the fish I gave away over the years!!