Not all SQL functions work

Forum for DBF Commander discussing.

Not all SQL functions work

Postby somethingsimil » Tue Aug 26, 2014 3:08 pm

MIN() MAX() do not seem to work at all, and I've noticed many other examples, as well as some unexpected behavior from the NVL() function.

In a previous comment, you mentioned this MSDN resource for functions.

Is this the correct reference guide of available functions? ...because many of these aren't recognized.
somethingsimil
 
Posts: 30
Joined: Tue Jul 08, 2014 6:05 pm

Re: Not all SQL functions work

Postby Admin » Tue Aug 26, 2014 3:29 pm

MIN() and MAX() functions work perfectly, as well as NVL(). List of supported functions available here.
Best regards,
Oleg Zhechkov
User avatar
Admin
Site Admin
 
Posts: 124
Joined: Wed Apr 21, 2010 7:27 pm

Re: Not all SQL functions work

Postby somethingsimil » Tue Aug 26, 2014 3:49 pm

Perhaps it's not supported in the select block? Here is the SQL I'm using...

select ico, MAX(paid, reserve) amount
from "E:\Reporting\CLAIM.DBF"
group by ico

...with an error message: -> Function name is missing )

Even a simplified version:

select MAX(paid, reserve) total
from "E:\Reporting\CLAIM.DBF"

...gives the same error message. Am I missing something?
somethingsimil
 
Posts: 30
Joined: Tue Jul 08, 2014 6:05 pm

Re: Not all SQL functions work

Postby somethingsimil » Tue Aug 26, 2014 3:52 pm

Actually, I think I realized my error. I was using max without as an aggregate function. I should have had...

select ico, sum(MAX(paid, reserve))
from "E:\Reporting\CLAIM.DBF"
group by ico

That error message (which I'm guessing is from FoxPro) is not very intuitive.
somethingsimil
 
Posts: 30
Joined: Tue Jul 08, 2014 6:05 pm


Return to DBF Commander Professional

Who is online

Users browsing this forum: No registered users and 6 guests

cron