DB2 Nested Loop JOIN is used when one table is small and the other table is large. The smaller table…