Pervasive 2000i workstation engine & server engine: I'm doing it locally first to test & then want to replicate on clients' win2k server running 2000i sp4.
I'm just using the pervasive control center & executing an sql statement there. I've had good success updating single tables, such as make prod_cat = '233' where item_no between 'AAA' and 'ZZZ', but am struggling w/syntax for updating another file based on a value in a related table.
This syntax creates a return of all fields in iminvloc:
SELECT * FROM IMINVLOC_SQL LEFT OUTER JOIN IMITMIDX_SQL on IMINVLOC_SQL.Item_No = IMITMIDX_SQL.Item_No
However, when I try to just capture certain fields from itmimidx & iminvloc (item_desc_2, item_no, prod_cat, loc), I get a message that the records are not unique. This is true, since I have multiple records in iminvloc that contain the same item_no as in the imitmidx_sql. I tried to switch to right outer join w/o success. Pervasive documentation says they use SQL92 as the convention for syntax, but since I am not a real programmer, this is greek to me.
I'd rather not use access to do an update query on these files. My experience has been that the way access formats the fields & the way Macola wants them to look sometimes conflict & create data problems down the road. I have had much better success using the PCC or EM to update files provided I have been diligent enough to change all affected fields in the files when I change a value where other fields are dependent (such as chekcing backorderable if the item is set to PP/pull).