thisOldDave
01/18/2023, 3:57 PMQuery Of Queries syntax error. Encountered "email not in ( select. Incorrect conditional expression, Expected one of [like|null|between|in|comparison] condition,StackTracejava.sql.SQLException . The Adobe documentation claims NOT IN is fine https://helpx.adobe.com/coldfusion/developing-applications/accessing-and-using-data/using-query-of-queries/query-of-queries-user-guide.html (search in conditional) . but I cant get it to fly locally and this gist https://trycf.com/gist/91a2db7d0767096bc1fc9d93f8caba93/lucee5?theme=monokai seems to demonstrate thjat it is fine in Lucee and Railo but not in any version of ACF although I am sure I have used the construct in the past.zackster
01/18/2023, 3:59 PMthisOldDave
01/18/2023, 4:09 PMdavla
01/18/2023, 4:13 PM// add the pews.id into a list and then use in QoQ.
pewsids = valueList(pews.id);
result = queryExecute("select * from news where id not in (:pewsids)",{
pewsids: {
value: pewsids,
sqltype: "integer",
list: true
}
},{dbtype="query"});thisOldDave
01/18/2023, 4:47 PMRodney
01/18/2023, 4:57 PMthisOldDave
01/19/2023, 8:39 AMEvil Ware
01/20/2023, 10:17 AMthisOldDave
01/20/2023, 10:31 AMAdam Cameron
Adam Cameron
Query.filter