Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Not null and index
Maxim Demenko wrote:
> Charles Hooper schrieb:
>> How would you index NULL values? Function based index? >> >> Thanks again for your contribution. >> >> Charles Hooper >> IT Manager/Oracle DBA >> K&M Machine-Fabricating, Inc. >>
create index ... on table(nvl2(process_date, 'Y', NULL));
and use it like
select ...
where nvl2(process_date, 'Y', NULL) = 'Y'
Jan Received on Wed Sep 19 2007 - 13:37:11 CDT
![]() |
![]() |