× 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.



Darryl,

Haven't been following this thread too closely but I think that *maybe* the
following code could help:

Create view Qtemp.Insert_dta as
With t1 as(
select q1.*, rrn(q1) as rrn_q1 from qtemp.quote q1 )
Select t1.* from t1
where not exists(
Select 1 from qtemp.quote q2
where rrn(q2) > t1.rrn_q1
AND t1.qtvend = q2.qtvend
and (
(t1.qtdtef between q2.qtdtef and q2.qtdtex) OR
(t1.QTDTEX between q2.qtdtef and q2.qtdtex)
)
)

**********
It should be a little slow. Having the appropriate indexes should help a
lot.

Just INSERT the columns you need.


HTH,
Luis Rodriguez
IBM Certified Systems Expert — eServer i5 iSeries

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.