Neo
03-06-2002, 10:58 PM
I am stuck on a way of extracting unique entries from a dbase.
basically what i have is a table that holds 'users' that accessed certain 'pages' on certain 'dates'.
i want to sort by users then show last page accessed, however i have 2000+ users that access 300 different pages so i need a way to sort and extract unique entries.
e.g. sort into 'users'/'dateaccesed' and only pull the last 'page' that each user accessed into a while loop.
is there a way of calling this into a single query, then run a while loop on the result?
please help i am going nuts and the routine i have at the mo takes 43 secs for each run.
basically what i have is a table that holds 'users' that accessed certain 'pages' on certain 'dates'.
i want to sort by users then show last page accessed, however i have 2000+ users that access 300 different pages so i need a way to sort and extract unique entries.
e.g. sort into 'users'/'dateaccesed' and only pull the last 'page' that each user accessed into a while loop.
is there a way of calling this into a single query, then run a while loop on the result?
please help i am going nuts and the routine i have at the mo takes 43 secs for each run.