A
Antoine
Am trying to construct a query to generate a histogram an the
distribution of a variable TimeDiff that is defined in a query ART.
I defined a table called HoursBin:
1 2
3 4.5
4.5 7
7 10
Here's the SQL statement that I generated:
SELECT HourBins.From AS FromBin, Count(ART.TimeDiff) AS TimeDiffCount
FROM ART
RIGHT JOIN HourBins ON (ART.TimeDiff>=HourBins.From) AND
(ART.TimeDiff<HourBins.To)
For some reason it does not work.
Any ideas?
distribution of a variable TimeDiff that is defined in a query ART.
I defined a table called HoursBin:
0 1From To
1 2
3 4.5
4.5 7
7 10
Here's the SQL statement that I generated:
SELECT HourBins.From AS FromBin, Count(ART.TimeDiff) AS TimeDiffCount
FROM ART
RIGHT JOIN HourBins ON (ART.TimeDiff>=HourBins.From) AND
(ART.TimeDiff<HourBins.To)
For some reason it does not work.
Any ideas?