Self Join in Progress

Posted by Admin on 27-Feb-2007 12:50

Does anyone know how to join a table on itself in progress? For example, in SQL you would just put select * from table1 t1 inner join table1 t2 on t1.name = t2.name.

Ryan

All Replies

Posted by Thomas Mercer-Hursh on 27-Feb-2007 17:15

Are you doing this in SQL or in ABL?

If ABL, is it a query, for each, repeat, or what.

Posted by Tim Kuehn on 27-Feb-2007 19:41

define buffer table-name-2 for table-name.

for each table-name no-lock,

each table-name-2 where table-name-2.field-name = table-name.field-name

etc.

Posted by Admin on 28-Feb-2007 13:41

Thanks. The buffer table worked.

This thread is closed