SELECT
A.row_number, B.column_number, SUM(A.value*B.value)
FROM
A, B
WHERE
A.column_number = B.row_number
GROUP BY
A.row_number, B.column_number
This snippet outputs the multiplication of two matrices where each matrix is a table with the form:
matrix (row_number, column_number, value)
Could you possibly explain what happens when the code gets evaluated? If you could explain step by step it would be appreciated.
Thanks