Script Paradox to SQL