-ide is used for non-metal compounds generally. For example, Chlorine forms a chloride ion, so NaCl is Sodium Chloride. -ate and -ite are commonly used for polyatomic ions of Oxygen. -ate is used for the ion that has the largest number of Oxygen atoms. the -ite would be used for the ion with the smaller. NO2 and NO3 are known as Nitrite and Nitrate respectively. Nitrite has a smaller number of oxygen atoms so when added to an element it will be _ Nitrite. On the other than, Nitrate has a larger number of Oxygen atoms so when added to an element it is _ Nitrate.
Hope that helps!