Hello,
I need an LLBLgen Pro code equivalent for the following SQL statement. Mind that the field 'ReCode' is a VarChar.
SELECT Max(ReCode) FROM Relatie
The sql statement is valid as it works in the SQL query analizer (SQL Server)
I've tried to do it with the following but this doesn't work as it is meant to work only with numeric fields.
Dim filter As IPredicate = (RelatieFields.Recode.SetAggregateFunction(AggregateFunction.Max))
Another way could be
SELECT TOP 1 * FROM relatie ORDER BY ReCode DESC
But i don't know how to do this with LLBLGen Pro. Any ideas on how to do this ?
Thanks in advance,
Daniel