Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Verify Ovelapping postal code

muttleychessJun 12 2008 — edited Jun 12 2008
Hi



I have a tabel with struct below
cd_strut     number(6),
postal_ini   number(8) 
postal_fim   number(8)

[/code}

   for a strut (eg 16 or 4) I must to verify if  a range exists in other struct
  
  
examples
[pre]
 CD_STRUT     POSTAL_INI      POSTAL_FIM
    7         10000000        12000000
    8         12000001        20000000
    9         20000001        30000000
  10          30000001        40000000
  11          30000500        30000600
  12          25000000        35000000
[/pre]

    In examples above  (cd_strut 11 and 12) are in overlapping
	
  I must to show what are CD_STRUCT  with overlapping
	
tia

Message was edited by: 
        muttleychess                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 10 2008
Added on Jun 12 2008
4 comments
346 views