select tablespace_name, max_gb, used_gb, round(100 * used_gb / max_gb) pct_used from (select a.tablespace_name tablespace_name, round((a.bytes_alloc - nvl(b.bytes_free, 0)) / power(2, 30), 2) used_gb, round(a.maxbytes / power(2, 30), 2) max_gb from (…