Chemical methods are quite expensive. Membrane technology is the best choice (reverse osmosis). Maybe some previous steps will be needed, because if waste water contains solids in suspension or microorganisms they have to be removed, to avoid fouling of the membrane.