Proposed SELECT is wrong I think.
Try
SELECT AVG(RATE) FROM ...
If You need only average.
Can You explain WHERE clause in this select?
It looks very suspicious to me.
Do You want to select records from a period for example like this
from 23/11/2008 15:00 to 24/11/2008 13:00
The separatly comparing date and time parts is a mistake.
Main Topics
Browse All Topics





by: Sharath_123Posted on 2008-11-24 at 17:00:51ID: 23031835
check this:
Select allOpen in new window