The safest place in an Earthquake is OUTSIDE in the open where things can't fall on top of you! Especially if you are near the center and buildings are coming down.
A doorway or under a table is for tornados.
I used to live in San Diego, we had Earthquakes a lot. Everyone knew what to do when they happened.
Table or a doorway are not going to protect you if the structure comes down.