Nation achieve a competitive advantage

How can a nation achieve a competitive advantage? How does marketing affect the economy of a nation?