Diving Flying

In both cases, flying on an airplane and diving there is pressure in the ear …?
In both cases, flying on an airplane and diving there is pressure in his ear. Can anyone find a table of size compared to the depth and amount of pressure in your body? For example. From 30 feet deep is equivalent to 10,000 feet high, and both have 2 times the pressure? This is just an example and not have the data behind it. That's what I'm looking for. I had problems both ends so that the pressure in the middle ear and want to know what is equivalent in both? Thank you.
Pressure drops with increasing altitude.
Pigs Diving Flying