When dissolving an aqueous solution of an ionic compound, sodium chloride for example, is there a way to keep the Na+ separate from the Cl- ions, as in to yield sodium and chlorine, rather than salt? Obviously I don't want to do this because of the dangers of chlorine gas, I just used that as an example.
I figure electrolysis would end up yielding sodium chlorate (or perchlorate?) and hydrogen gas, but maybe I'm wrong.
I was just wondering for no particular reason I guess.