Difference between Amp's memory & Spool space.

General
Enthusiast

Difference between Amp's memory & Spool space.

Just trying to understand below statement.

"A hash join can be performed only if one or both of the join tables can fit into the AMP’s memory, rather than spool. "

Spool space is unused PERM space and what is AMP's Memory?

Please help.