I have cvs file that goes into main db... then from main db it goes to temp db... which I have successfully removing duplicates...
But I am now sorting by latest date cause its not taking the newer of two entries and taking the older one.. i tried min and max.. niether works. I think its the way the date is coming into my db..( shown below) ..
so call it latestdate column.
in those columns are dates written like this.. 10/08/2008
I cant get
$sql = "INSERT INTO XTMP SELECT DISTINCT ???CODE MIN(latestdate) as latest date etc etc
to work it properly..
I was thinking and trying stripslashes and convert
just cannot come up with the proper command.
so the date above wouldnt be a date anymore.. ( doesnt matter at this point)
bt would be a number 10082008
which is higher then last months date 9082008
it would be night to do it proper and spin the year to the other end... but at this point im tired of the whole project lol.
Any help would be greatly apprieciated. Its the very last detail of my project 3rd night all night on it, its friday night man! lol .... im comin for help.
thanks.