type filename size
___________________________
.txt ab.txt 12
.txt ab.txt 12
.txt cli.txt 14
.avi clie.avi 15
I have a table like this. i want to select the files where the filename is same(given by the user), and filesize is same and it will say how many similar files are there on the table.
for eg. if I write filename=ab.txt it will return
filename count(filename) filesize
______________________________________________________
ab.txt 2 12
I tried:
SELECT filename,count(filename), filesize from loadtable where filename='hi.txt' and filesize=filesize group by filename;
it gives a message box to type the filesize........and then output is displayed
why does it gives the messagebox
___________________________
.txt ab.txt 12
.txt ab.txt 12
.txt cli.txt 14
.avi clie.avi 15
I have a table like this. i want to select the files where the filename is same(given by the user), and filesize is same and it will say how many similar files are there on the table.
for eg. if I write filename=ab.txt it will return
filename count(filename) filesize
______________________________________________________
ab.txt 2 12
I tried:
SELECT filename,count(filename), filesize from loadtable where filename='hi.txt' and filesize=filesize group by filename;
it gives a message box to type the filesize........and then output is displayed
why does it gives the messagebox