Il fallait qu'il vînt = It was necessary that he come (literary)
Distinguish entre verbs that always take subjunctive (vouloir que attendre que) and those that fluctuate (espérer que — indicative in standard French).
Espérer que takes indicative not subjunctive.
J'espère qu'il viendra (NOT vienne) = I hope he will come