You're comparing a survey (NHANES), which is a questionnaire completed by volunteers, to an active treatment medical study with a placebo control group. Comparing the N count between these two is essentially apples to oranges.
As to the results of the salt intake survey (Pogoda et al.), it is describing a correlation, not a causation. The actual relationship between salt intake and migraines could also be inverted, or completely independent.