Nigeria are through to the last 16 at the Fifa Under-20 World Cup after beating South Korea 1-0 on Thursday.
A goal from Kayode Olarenwaju - his first of the tournament - was enough to see the Flying Eagles record their second victory in Group B.
Ghana have given themselves a slim chance of reaching the knock-out stages after a superb 4-1 victory over the now-eliminated United States.
Ebenezeer Assifuah's brace and one goal each from Frank Acheampong and Kennedy Ashia means the west Africans must wait to see if they progress as one of four best third-place sides.
There is no such wait for Nigeria who secured their place thanks to a ninth-minute header from Olarenwaju when he connected with captain Abdul Ajagun's superb free-kick.
The Nigerians dominated for large periods of the match but poor finishing let them down in Istanbul, Turkey.
John Obu's side will play the second-place side from Group F in the next round.
The best four teams to finish third in the six groups will advance to the knock-out stage - along with all the group winners and runners-up - and that could include Ghana, who have three points and a goal difference of zero in Group A.
Acheampong opened the scoring for Ghana against USA on 38 minutes, pouncing on a defensive mix-up. The hardworking Assifuah made it 2-0 when he collected the ball on the edge of the area and fired a fierce shot into the top corner.
Shane O'Neill pulled one back for USA with a header but Ghana soon restored their two-goal lead when Assifuah nodded home.
And Ashia's late strike from a tight angle sealed the win as well as boosting Ghana's goal difference.