>>SELECT * FROM tranmstr ; >>left JOIN misclndr on tranmstr.tranid = misclndr.tranid ; >>inner JOIN propmstr on tranmstr.propid = propmstr.propid ; >>inner JOIN sitemstr on tranmstr.propid = sitemstr.propid and sitemstr.town="GOSN"; >>left JOIN bldgmstr on tranmstr.propid = bldgmstr.propid ; >>where (prefcode = "P" and SOURCE="S") ; >>and between(extrYear+extrWeek ,'200004', '200004') ; >>into cursor tttt >> >> >>** The first SQL produced 0 records (there is no transactions for this town) >> >>select * from tttt right join towns on tttt.town_a=towns.town where towns.town='GOSN' >> >>** The second SQL produced one record (as I desire) with NULL in all tttt fields and Towns fields for this town. >>>>