Jak wygenerować listę dat z wybranego zakresu, które to dni nie będą np. niedzielą i sobotą? Wiem, że na 10g da się to jednym zapytaniem.

----------------
Już mam:
  1. SELECT trunc(sysdate - 8 - level) AS DATA,
  2. (case to_char(trunc(sysdate - level), 'D')
  3. when '1' then 'pn'
  4. when '2' then 'wt'
  5. when '3' then 'sr'
  6. when '4' then 'cz'
  7. when '5' then 'pt'
  8. else 'inny'
  9. end) AS dzien
  10. FROM dual WHERE to_char(trunc(sysdate - level), 'D') NOT IN (6, 7)
  11. connect BY level <= 31