Where The Streets Have No Name

OVERLAP Function 본문

Developement/DataBase

OVERLAP Function

highheat 2008. 1. 25. 21:41
SQL*Plus: Release 10.2.0.1.0 - Production on On Dec 13 23:36:15 2006

Copyright (c) 1982, 2005, Oracle. All rights reserved.


Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production

SQL> select 'yes' from dual where (sysdate-5,sysdate) overlaps (sysdate-2,sysdate-1);

'YE
---
yes

SQL> select 'yes' from dual where (-5,0) overlaps (-2,-1);
select 'yes' from dual where (-5,0) overlaps (-2,-1)
*
ERROR at line 1:
ORA-00932: inconsistent datatypes: expected DATE got NUMBER


참고 : http://forums.oracle.com/forums/thread.jspa?messageID=2307541