× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Is there a way to index an SQL view?  It appears from the documentation that it 
can't be done.  Searching Google didn't produce a way to do this either.  I'm 
hoping someone on the list will know how to do it, if it can indeed be done.

As background, I have created a view which takes a ten byte alpha field and 
breaks it up into its components (Last name 6-bytes, first initial 1-byte, 
middle initial 1-byte, and tie breaker number 2-bytes) so they can be joined to 
another file with these stored as separate values.  The goal is to create a 
select statement that will return the name and address for a customer.  I have 
a working statement but the run time is not quick enough.  I have tried 
indexing the name and address files (both binary and EVI) but it isn't getting 
me where I want to be.

Here is the statement in case it would help.  The account number is only in 
file CUXRF1V1.  The name and address are then located in CUMAS00 and CUMAS01 
using the fields described above.

select cuna1, cuna2, cuna3, cuna4, cuna5, cuna6, cuzip, cuzip2     
from cuxrf1v1 join cumas00 a on cuxlast = a.culast
and cuxfrst = a.cufrst and cuxmidl = a.cumidl and cuxtie = a.cutie 
left outer join cumas01 b on cuxlast = b.culast           
and cuxfrst = b.cufrst and cuxmidl = b.cumidl and cuxtie = b.cutie 
where cux1ac = xxxxxxxxx                                           


Rick Chevalier
 <<ole0.bmp>> 
Enterprise Solutions
Ext. 57178


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.