When wicked people die, they go straight to hell and spend eternity burning there. The second teaching suggests that when people die they go into the grave and 'sleep', and know nothing until the resurrection. At that time, they are resurrected and given immortality. Likewise, the wicked are resurrected at the end of the 1000 years to receive their punishment. A careful examination of both teachings will reveal the concept that is in harmony with Daniel's perception of the judgment.
Scriptural teachings are always in total agreement.
To know for certain what the Bible says about death, let us carefully examine what Daniel and the rest of the Bible has to say. At the of the you will rise to receive your allotted inheritance. Daniel is clearly told that he is to rest from his labors until the end of the days. At the end of all of these prophetic time periods, at the second coming of Jesus, he would receive his inheritance at the resurrection. Clearly Daniel did not expect to go to heaven until the second coming of Jesus.