Write silver nitrate reacting with sodium chloride the way the substances really exist in water: Ag+(aq)+NO3−(aq)+Na+(aq)+Cl−(aq)→AgCl(s)+Na+(aq)+NO3−(aq). The sodium and nitrate ions start dissolved and end dissolved, unchanged; they are spectators. Cross them out of both sides and the real event is left: Ag+(aq)+Cl−(aq)→AgCl(s).
The key decision is what to split. Only strong electrolytes that are dissolved, marked (aq), break into ions: soluble ionic compounds, strong acids such as HCl and HNO3, and strong bases such as NaOH. Solids, liquids such as water, gases, and weak electrolytes such as acetic acid stay as whole formulas, because in the beaker they really are whole. That is why state symbols matter: AgCl(s) stays together, while NaCl(aq) is written as separate ions.
A net ionic equation is not just a shorter molecular equation. Spectators can be dropped because they do not change, but what remains still has to balance in charge: in Zn(s)+Cu2+(aq)→Zn2+(aq)+Cu(s) the charge is +2 on each side. And if every ion cancels, as when sodium chloride and potassium nitrate solutions are mixed, there is no net ionic equation at all, because no reaction happened.
Think of it like this. A net ionic equation is the highlight reel of a match: the players who stood still all game are edited out, and only the plays that changed the score are shown. Cutting them changes nothing about the result. If nobody scored, there is no highlight reel at all, just as an all-spectator mixture has no net ionic equation.
Core idea. Split every dissolved strong electrolyte into ions, cancel the spectators that appear unchanged on both sides, and what remains, balanced in atoms and in charge, is the reaction that really happens.