
A DELETE statement in SAP IQ 16.1 can run for a long time and use a large amount of TEMP DBSPACE when its join conditions produce too many intermediate rows. Other queries and reporting jobs may then be affected by the temporary-space pressure.
Check the join before adding space
In SAP KBA 3728542, the DELETE joins two tables on two columns that are not unique in either table. Multiple matching rows on both sides multiply the join result, increasing the work and temporary storage needed.
For example, three matching rows on one side and four on the other can produce twelve joined rows for the same key combination. The important question is whether those matches reflect the application’s intended relationship.
What to review
- Ask the application team to review the full join predicate and confirm which columns identify the intended matching rows.
- Check whether the join keys are unique as expected. Add missing join conditions or business filters where appropriate; do not change the deletion criteria without confirming the intended result.
- Review the query plan and application logs, then assess suitable indexes on the join columns.
- Monitor TEMP DBSPACE during a controlled test of the corrected query. Review capacity or database configuration if pressure remains.
Extra temporary space may relieve immediate pressure, but an unexpectedly large many-to-many join still needs investigation. Validate which rows will be deleted before running the revised statement against production data.

