Gavroche00
Technical User
Hi, I am very new at this, and hope someone can help.
I have a query that gives me the price of the taxi fare depending on the route. It also logs the vehicle number. Unfortunately everything works except the fact that if a taxi did 10 fares, under the count function for the total, it counts this particular behicle number 10 times. I.E. my vehicle number count is equal to my fare count. I read in the bible about the word distinct, but have no clue as to how to incorporate it in my query.
Is it possible in the same query to get one column to be counted on distinct values while the one next is all values? And if yes, how do I do it?
Thank you for all help.
I have a query that gives me the price of the taxi fare depending on the route. It also logs the vehicle number. Unfortunately everything works except the fact that if a taxi did 10 fares, under the count function for the total, it counts this particular behicle number 10 times. I.E. my vehicle number count is equal to my fare count. I read in the bible about the word distinct, but have no clue as to how to incorporate it in my query.
Is it possible in the same query to get one column to be counted on distinct values while the one next is all values? And if yes, how do I do it?
Thank you for all help.