Thanks Steve. I use absolute database and it does have query capability.
I have a table called Images. Let's keep it simple and give it 3 fields: ImagesNo (autoinc), ImagesPath (string) and trialno (Integer).
I would like to delete all the records in the images database that have a trialno of 3 for example. Right now, i am doing a loop and checking every record. I have a feeling that this is not optimized.
Sincerely,
PS: This is a query example i use. Not sure if every database uses the same syntax.
ABSQuery.SQL.Text := 'UPDATE "'+db.DatabaseFileName+'".trial SET TRIALNO=TRIALNO+(SELECT MAX(TRIALNO) FROM trial)';
ABSQuery.ExecSQL;