select List.ListID,; List.ListID = Applies.ListID as WasChosen,; List.Description; from; List left outer join Applies; on List.ListID = Applies.ListID; and Applies.OwnerID = ?vp_OwnerID; into; cursor C_ListForGridYou were on the right track, but this way, your getting every entry from the POSSIBLE list, and only IF there is a match on the Applied table (for the given owner by the parameter variable), will the "WasChosen" column be set (or not)
>SELECT applies.ownerid, list.listid, list.entry, ; && applies.applyid as logical? >FROM applies RIGHT OUTER JOIN list on applies.listid = list.listid ; >WHERE applies.ownerid = ?vp_ownerid >