Yes it does appear to be an issue with the parenthesis, I tried adding them into the correct solution on the test interface and it does appear to break it, I'll investigate if this is an SQLite issue, or to do with the testing code implemented on the question itself.
So for now don't use parenthesis for this one.
Adam.
"Yufang Wei" <24*1*1*
3@s*u*e*t*u*a*e*u*a*> wrote:
> It seems like sqlite doesn't allow parenthesis for select statement when performing UNION/EXCEPT/INTERSECT operators?
>
> Without parenthesis, after UNION we get IRN and IWS, next it will perform EXCEPT and the result will be IWS, lastly it will do INTERSECT so the final results it returns is IWS.