Denmark and Estonia met on Saturday for the return leg in their Group D EuroBasket qualifying encounter.
Estonia held on for a 50-51 win in the first contest, but it was Denmark who came on top in Aarhus to claim a 69-68 victory, their first of the campaign.
There was a certain element of fortune in the win for Denmark as Estonia had two opportunities to steal the game in the final possession.
Estonia had a wide open three which would have been the game winner had it gone in. The shot was off the mark, but an offensive rebound gave Estonia another chance, which was promptly wasted with a turnover.
"Thomas Soltau made two big free throws and then we had stop them as it came down to their last possession," said Michael Dahl Andersen.
They had an open shot but they passed it on for an open three point shot, which they missed. They got the rebound and then throw the ball away. That's just good fortune."
Estonia assistant coach Üllar Kerde was philosophical in defeat.
"It's normal for us to lose a close game. We're still growing up. We're trying to build up a new generation in Estonian basketball," he said.
Five years ago, with the old generation, we were at the finals in Turkey. Now we're trying to build up something new. Sometimes it happens that our players cannot play as we want them to. Of course, nobody wants to lose. Denmark lost by one point lost in Tallinn. That's basketball."
Christian Drejer led a balanced Danish attack with 14 points, 8 rebounds and 7 assists.