I am working to create some reports that find and calculate round times and costs related to trucking. The data is gathered from a tracking system and I cannot control the structure of the table.
I am attempting to benchmark off of some queries that were written by a college that I no longer have access to for a similar application but I am running in to some syntax errors and do not know why.
Here is my query so far:
SELECT x_logs.alias, x_logs.time, x_logs.date, x_logs.status, x_logs.address, [x_logs.time]-(Select Max([x_logs.time])FROM x_logs AS DUP WHERE
x_logs.alias = DUP.x_logs.alia s AND x_logs.date = DUP.x_logs.date AND x_logs.status = DUP.x_logs.stat us
WHERE ((x_logs.date) Between "06/15/07" And "06/30/07"));
I imagine there will be questions in order to help me however I am not sure what to list here in advance. Please ask any questions and I will happily answer. I can even post some of the table I'm working with if that will help, although I am not sure how to do so.
Thanks in advance!
I am attempting to benchmark off of some queries that were written by a college that I no longer have access to for a similar application but I am running in to some syntax errors and do not know why.
Here is my query so far:
SELECT x_logs.alias, x_logs.time, x_logs.date, x_logs.status, x_logs.address, [x_logs.time]-(Select Max([x_logs.time])FROM x_logs AS DUP WHERE
x_logs.alias = DUP.x_logs.alia s AND x_logs.date = DUP.x_logs.date AND x_logs.status = DUP.x_logs.stat us
WHERE ((x_logs.date) Between "06/15/07" And "06/30/07"));
I imagine there will be questions in order to help me however I am not sure what to list here in advance. Please ask any questions and I will happily answer. I can even post some of the table I'm working with if that will help, although I am not sure how to do so.
Thanks in advance!
Comment