Home » Developer & Programmer » Forms » Only take new data(Urgent)
Only take new data(Urgent) [message #87556] Sun, 16 January 2005 00:30 Go to next message
suddin
Messages: 6
Registered: January 2005
Junior Member
Dear all,
I have to block B1 and B1. B1 have one time afer 15 seconds it make a query to retrieve data. and after retrieveign the data in B1 it will insert only the new data to the block B2.In simple ward I need the code that will check data between B1 and B2 and will insert new data of B1 to B2. Can any one help me.
Regards,
Shalauddin.
Re: Only take new data(Urgent) [message #87560 is a reply to message #87556] Sun, 16 January 2005 04:12 Go to previous messageGo to next message
Just John
Messages: 69
Registered: November 2004
Member
This type of processing is best done no the database - I would advise you to write a procedure and call it from the form.

Using two cursors would be my first approach.
Re: Only take new data(Urgent) [message #87587 is a reply to message #87560] Mon, 17 January 2005 23:31 Go to previous message
Himanshu
Messages: 457
Registered: December 2001
Senior Member
YES,
Database procedure will be best to do this.
This can be achived with a single statement:

insert into table1
((select * from table1
minus
select * from table 2)
Union
(Select * from Table2
minus
Select * from Table1)
);
Commit;

HTH
Regards
Himanshu
Previous Topic: Re-query updated columns
Next Topic: To fire key triggers in User Defined Trigger.
Goto Forum:
  


Current Time: Thu Sep 19 13:32:20 CDT 2024