Nitrates are prepared by the action of nitric acid on a metal or its oxide, hydroxide or carbonate. All nitrates are soluble in water. On heating, the nitrates of the alkali metals yield only oxygen and the nitrite (Except Lithium).
Most of the nitrate salts of other metals on heating decompose to produce metal oxide ,nitrogen dioxide (NO2) and oxygen gas. (Except M= Na, K, Rb, Cs but lithium(Li) do as above)