When simple salts dissolve, they dissociate into individual ions, which are solvated and dispersed throughout the resulting solution. Salts do not exist in solution.  In contrast, molecular compounds, which includes most organic compounds, remain intact in solution.  
The solubility of salts is highest in polar solvents (such as water) or ionic liquids, but tends to be low in nonpolar solvents (such as petrol/gasoline). This contrast is principally because the resulting ion–dipole interactions are significantly stronger than ion-induced dipole interactions, so the heat of solution is higher. When the oppositely charged ions in the solid ionic lattice are surrounded by the opposite pole of a polar molecule, the solid ions are pulled out of the lattice and into the liquid. If the solvation energy exceeds the lattice energy, the negative net enthalpy change of solution provides a thermodynamic drive to remove ions from their positions in the crystal and dissolve in the liquid. In addition, the entropy change of solution is usually positive for most solid solutes like ionic compounds, which means that their solubility increases when the temperature increases. There are some unusual ionic compounds such as cerium(III) sulfate, where this entropy change is negative, due to extra order induced in the water upon solution, and the solubility decreases with temperature.
The lattice energy, the cohesive forces between these ions within a solid, determines the solubility. The solubility is dependent on how well each ion interacts with the solvent, so certain patterns become apparent. For example, salts of sodium, potassium and ammonium are usually soluble in water. Notable exceptions include ammonium hexachloroplatinate and potassium cobaltinitrite. Most nitrates and many sulfates are water-soluble. Exceptions include barium sulfate, calcium sulfate (sparingly soluble), and lead(II) sulfate, where the 2+/2− pairing leads to high lattice energies. For similar reasons, most metal carbonates are not soluble in water. Some soluble carbonate salts are: sodium carbonate, potassium carbonate and ammonium carbonate.