Naive Hash Join performs an in-memory hash table build and then join.
Prerequisite: Relation can fit into memory (that is, having ). And this often not going to be possible, so solution is Grace Hash Join.
It’s basic idea is that we read all pages of relation , building an in-memory hash table, and then read in each records of to look it up in table.