
In SAP IQ database, you can use below command to find and sort table size using the interactive SQL.
select Owner,Object_Name, convert (float,substr (columns,1, char_length (columns)-1))*power (1024,charindex(substr(columns,char_length(columns),1),'BKMGTP')-1) as Bytes from sp_iqdbspaceinfo() order by 3 desc
The output will list from the top size table to the lowest size table,
| Owner | Object_Name | Bytes |
|---|---|---|
| ARA | /ARA/BIC/OBJ1 | 10000000 |
| ARA | /ARA/BIC/OBJ2 | 9000000 |
| DAANI | /DAANI/BIC/OBJ3 | 8000000 |
| DAEM | /DAEM/BIC/OBJ4 | 7000000 |
| DAARIS | /DAARIS/BIC/OBJ5 | 6000000 |
If you are using below command, you will only able to list to only one specific table.
sp_iqtablesize ( table_owner.table_name )
##Example##
sp_iqtablesize ('ITSITI.ARADAEM')


