A
Alan
Hi experets,
I have a SQL running very slowly on Vb program accessing MS Access
database, if possible, could you tell me how to simplify it? The SQL
is to select the the smaller files in the groups of same-name file.
Update SrchSession AS s set Mark=true where filename in (select
filename from SrchSession where filename & size not in (select
Filename & max(size) from srchsession group by filename ) group by
filename having count(filename)>=2)
Tables:
Folder:
FolderID Long 4
FolderName Text 255
IsSrchTarget Y/N 1
SrchSession:
FileID Long 4
Mark Y/N 1
FolderID Long 4
Filename Text 120
Size Long 4
DupGroupID Long 4
ModDate Date/Time 8
Thanks in advance.
Alan
I have a SQL running very slowly on Vb program accessing MS Access
database, if possible, could you tell me how to simplify it? The SQL
is to select the the smaller files in the groups of same-name file.
Update SrchSession AS s set Mark=true where filename in (select
filename from SrchSession where filename & size not in (select
Filename & max(size) from srchsession group by filename ) group by
filename having count(filename)>=2)
Tables:
Folder:
FolderID Long 4
FolderName Text 255
IsSrchTarget Y/N 1
SrchSession:
FileID Long 4
Mark Y/N 1
FolderID Long 4
Filename Text 120
Size Long 4
DupGroupID Long 4
ModDate Date/Time 8
Thanks in advance.
Alan