Hi All
I am evaluating Aware IM using MySQL as my database engine. I have a query written directly as an SQL statement which includes a 'LIMIT' clause as follows:
Select Member.ID from dbname_tablename.Members As Member where Member.Grouped=0 ORDER BY RAND() LIMIT 5
When I run this query in a MySQL query editor, it works as required but when I run it in Aware IM's operational mode, it returns all 14 records of my Member table instead of just a random 5.
Does anyone know Why this might be? Note that if I try a simple query and I don't tamper with the SQL, the Limit clause seems to work. I therefore think it is something to do with my ORDER BY clause.
So I then tried placing the SQL statement in a stored procedure called Random5 and then did
EXEC_SP 'Random5' Return Member
from within a business process. I got an "invalid parameter ..." error.
Anyone know what I'm doing wrong? By the way, I am version 4.9 for Windows.