SQL - FIRST() and LAST() aggregate functions return numeric type fields even from string types

Ernesto Giannotta erne at apimac.com
Sun Aug 29 09:13:54 CDT 2010


Hello Ruslan,

I'm getting strange results from the FIRST() and LAST() aggregate functions.

a query like this:

select FIRST(Artist) as Name 
FROM Artists 

returns a field containing the number 0

Shouldn't it return a string? 

I get it correct with group_concat().


Cool Runnings,
Erne.



More information about the Valentina mailing list