Hi!
When I use the max function while querying the database, I get the error of "Function Testlink.Max does not exist -- Error # 1305". Is there a way to add this?
Thanks
Sangita
Max function is not available
Moderators: Amaradana, TurboPT, TL Developers
Sounds like a possible mis-configuration. [but might not be]
Error 1305 is a MySQL [not MS-SQL] error# for "procedure doesn't exist", as it seems to be looking for a procedure named 'max'.
Since max is an SQL aggregate function [in both MySQL and MS-SQL], I'm not sure how it is getting this error. The query you posted seems to be ok.
What MS-SQL version do you have? [not the browser version being used]
Oh, even though the query appears to be ok, as posted, make sure that there is NOT a space between max and its opening ( . If I do this with MySQL it gives me the same error. I'm not sure if MS-SQL needs a space there though, so try it both ways.
Error 1305 is a MySQL [not MS-SQL] error# for "procedure doesn't exist", as it seems to be looking for a procedure named 'max'.
Since max is an SQL aggregate function [in both MySQL and MS-SQL], I'm not sure how it is getting this error. The query you posted seems to be ok.
What MS-SQL version do you have? [not the browser version being used]
Oh, even though the query appears to be ok, as posted, make sure that there is NOT a space between max and its opening ( . If I do this with MySQL it gives me the same error. I'm not sure if MS-SQL needs a space there though, so try it both ways.