Write SQL query to solve given problem: Which countries in the upper middle income category still have unfinished external debt reporting? Please provide the country codes in your answer.. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT CountryCode FROM Country WHERE IncomeGroup = 'Upper middle income' AND ExternalDebtReportingStatus = 'Preliminary'