select DISTINCT pr.* ; from exp_tick et, property1 pr ; where (pr.key = et.key) ; into table (exp_prop); order by pr.keyIt's better to use 2-3 letter meaningfull aliases in the queries. It makes code easier to read and maintain.
>select b.* ; >from (exp_tick) a, property1 b ; >where (b.key = a.key) ; >into table (exp_prop); >group by b.key ; >order by b.key >>
>select key from (exp_tick) into cursor cur_exp group by key >select key from property1 into cursor cur_prop group by key >select b.* ; >from cur_exp a, cur_prop b, ; >where (b.key = a.key) ; >into table (exp_prop) ; >order by b.key >