to by mohlo být užitečné, select level lvl from dual connect by level<=10 minus select id from table;