Hi All,
Im using two tables (either by USE command or by SQL). I need to determine the non-existing record from table1 against table2.
also, Im using ADS, is there a way to compare local table from server table ?
Anybody can help?
Thanks,
FAP
SELECT EmpNo, EmpName
FROM EmployeeRecord
WHERE Salery > 1000
MINUS
SELECT EmpNo, EmpName
FROM EmployeeRecord
WHERE Salery > 2000
ORDER BY EmpName;
SELECT *
FROM suppliers
WHERE not exists (select * from orders Where suppliers.supplier_id = orders.supplier_id);
SELECT EmpNum, EmpName
FROM EMPOLYEES
WHERE EmpNum NOT IN
(SELECT EmpNum FROM Table2)
I cant execute SQL for two different connection.. am I right?
nageswaragunupudi wrote:..
Have you tried opening local table and also another table on the server through the same local connection? I am not in touch with ADS now, but probably you can do that..
..
nageswaragunupudi wrote:Is your requirement one way synchronization of master table on server to replicated table on local pc? If so, I suggest a different solution.
Maintain UpdateTimeStamp column in the Table.
When you want to synchronize,
<psuedo logic>
Step1: Select Max( UpdateTimeStamp ) from local table
Step2: Select * from server table where UpdateTimeStamp > #maxlocaltimestamp#
Step3: Insert new rows and update modified rows in the local table.
select( 'localdb' )
APPEND FROM 'serverdb' where localdb->field_id <> serverdb->field_id //... similar to this example
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 110 guests