Test for nitrates -a level chemistryWatch
Firstly, add aqueous NaOH to your unknown substance. Then add aluminium powder or foil, and proceed to heat the mixture strongly.
If nitrate ions are present, they will be reduced to ammonia, giving off ammonia gas. This can be identified by testing it with damp red litmus paper, which will turn blue in its presence.