There are (Two) resurrections on this (Last Day) the righteous are blessed to be in the (First Resurrection) to eternal life, on such the (Second) death resurrection has no power.
1.) (First) Resurrection To Life
2.) (Second) Resurrection To Damnation, The Second Death
The two resurrections don't happen the same day. Revelation 20 is clear one group of the dead lives again while "the rest of the dead lived not again until the thousand years were finished".
So that is one group resurrecting BEFORE the thousand years and one AFTER the thousand years.
Read it for yourself:
Rev 20:1 And I saw an angel come down from heaven, having the key of the bottomless pit and a great chain in his hand.
Rev 20:2 And he laid hold on the dragon, that old serpent, which is the Devil, and Satan, and bound him a thousand years,
Rev 20:3 And cast him into the bottomless pit, and shut him up, and set a seal upon him, that he should deceive the nations no more, till the thousand years should be fulfilled: and after that he must be loosed a little season.
Rev 20:4 And I saw thrones, and they sat upon them, and judgment was given unto them: and I saw the souls of them that were beheaded for the witness of Jesus, and for the word of God, and which had not worshipped the beast, neither his image, neither had received his mark upon their foreheads, or in their hands; and they lived and reigned with Christ a thousand years.
Rev 20:5 But the rest of the dead lived not again until the thousand years were finished. This is the first resurrection.
Rev 20:6 Blessed and holy is he that hath part in the first resurrection: on such the second death hath no power, but they shall be priests of God and of Christ, and shall reign with him a thousand years.