Hi,
I'm a new Access user and i'm having some small problems with pulling out the information from Microsoft Access database.
I need a breakdown of unique visits by specific time range.
Below function is working fine as it give me the breakdown by time unfortunately the duplicated visits are counted together.
One visit should be counted only one not twice as it's happening in below code.
I will be very appreciate for any clue or example how to achieve it.
I'm a new Access user and i'm having some small problems with pulling out the information from Microsoft Access database.
I need a breakdown of unique visits by specific time range.
Below function is working fine as it give me the breakdown by time unfortunately the duplicated visits are counted together.
One visit should be counted only one not twice as it's happening in below code.
I will be very appreciate for any clue or example how to achieve it.
Code:
SELECT Partition(Hour([time]),0,23,1) AS Range_Time, Count(orders.Visit) AS Visits, Sum(orders.qty) AS Total_Qty
FROM orders
GROUP BY Partition(Hour([time]),0,23,1);