How long can a battery possibly last

The original batteries in my 04 Dodge 2500 diesel lasted 14 years. They were still working, but they made the starter drag one cold morning while we were at the beach. Diesel starters ain't cheap, so I bought new Autozone batteries for my truck. Autozone is the only place I will buy batteries.