Ian Grieve has a SQL View For Customer Item Link From SOP Transaction Line
SQL View For Customer Item Link From SOP Transaction Line | azurecurve
Sales, Purchasing & InventorySQL & DataPayables & Receivables
Archived post from 2015. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.