Anonymous user
Hash join: Difference between revisions
tidy up task description
mNo edit summary |
(tidy up task description) |
||
Line 1:
{{draft task}}
The classic [[wp:Hash Join|hash join]] algorithm for an inner join of two relations has the following steps:
<ul>
<li>Hash phase : Creating a hash table for one of the two relations by applying a hash
Line 10:
The algorithm is as follows:
'''for each''' tuple ''s'' '''in''' ''S'' '''do'''
'''place'''
'''for each''' tuple ''r'' '''in''' ''R'' '''do'''
'''if''' ''h'' matches any ''s'' in ''B''
'''place''' relation in ''Q
Implement the Hash Join algorithm in your programming language (optionally providing a test case as well).
|