Agreed with spot but about undeads.
You can revive someone killed by a death effect or someone who has been turned into an undead creature and then destroyed. This spell can also resurrect elementals or outsiders, but it canít resurrect constructs or undead creatures.
Undead must be 'true' dead (not undead via destroying at 0 hp(and others see vampires or liches)) to be affeted by resurrection.