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



On 8/21/2024 4:19 PM, a4g atl wrote:
I will be building the file from the journal receivers. I have my own
utility to build the fields from the receiver.

I am trying to compare record n-1 with record n.

Will OLAP LAG (or LEAD) help?

-- print the ordinal column number of the prior row, with /this/ row
select
column_name, table_name, table_schema, ordinal_position, column_heading,
lag(ordinal_position) over (order by table_schema, table_name, column_name) as lag
from syscolumns
where table_schema = 'QGPL'
order by table_schema, table_name, column_name;



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.