Get cross-sell and upsell products using SQL in Magento

Posted on December 24, 2015
Written by

The following is how t0 get cross-sell and upsell products using SQL in Magento

This can then be modified to filter by specific SKUs to check their association to one another by adding a simple where clause before grouping.