Select distinct(a.title),b.docindex_i from ocrdata a,docudeck b ; where b.file_name = a.tiffile ; and a.ocdata like "%schedule%" ; order by a.id into cursor lcsource