Hi all,
I have problem with the below query. I am using SQL server 2000 DB.
I tried the query in the query analyzer and it gave me the following error.
****
Invalid operator for data type. Operator equals multiply, type equals datetime.
******
The below is my query:
SELECT [OR Record].[Date of Surgery], 24*([Anesthesia stop time]-[Anesthesia start time]) AS Expr1
FROM [OR Record]
GROUP BY [OR Record].[Date of Surgery],24*([Anesthesia stop time]-[Anesthesia start time])
HAVING ((([OR Record].[Date of Surgery]) Between '10/01/2003' And '10/31/2003'));
The columns [Anesthesia stop time] and [Anesthesia start time] are in date-time format.
Thanks in advance.
VJ
I have problem with the below query. I am using SQL server 2000 DB.
I tried the query in the query analyzer and it gave me the following error.
****
Invalid operator for data type. Operator equals multiply, type equals datetime.
******
The below is my query:
SELECT [OR Record].[Date of Surgery], 24*([Anesthesia stop time]-[Anesthesia start time]) AS Expr1
FROM [OR Record]
GROUP BY [OR Record].[Date of Surgery],24*([Anesthesia stop time]-[Anesthesia start time])
HAVING ((([OR Record].[Date of Surgery]) Between '10/01/2003' And '10/31/2003'));
The columns [Anesthesia stop time] and [Anesthesia start time] are in date-time format.
Thanks in advance.
VJ