We are told in 2 Samuel 8:2 that:
David... defeated Moab and measured them with a line. Making them lie down on the ground, he measured two lengths of line for death, and a full length for life. Thus the Moabites became subject to David, paying tribute.
But in 1 Kings 11, it says:
When David had conquered Edom, Joab, the commander of the army, while going to bury the slain, killed every male in Edom. 16 Joab and all Israel remained there six months until they had killed off every male in Edom.
Do these passages refer to the same military campaign? If yes, which is accurate? But either way, can we believe that Israel (or Joab acting as commander of David army) killed every Moabite male? This would mean the end of the Moabites as a people and would make it impossible for Israel to receive tribute from them. Moreover, the Moabites were still a nation during the time of the Isaiah and Jeremiah, who spoke of them often. Historically, the Moabites only disappear from the historical records sometime after the Babylonian Exile. Should 1 Kgs. 11 be understood as a hyperbole? If not, how did Moab recover from the death of every Moabite male?