detta kan vara till hjälp, select level lvl from dual connect by level<=10 minus select id from table;