<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>11 Nov 2014 20:34:00 Z</lastBuildDate><pubDate>11 Nov 2014 20:01:00 Z</pubDate><description>Hi,&#13;
&#13;
I would like to sort on a calculated item in a query.&#13;
The calculated item should be True or False based on equality of two numeric items in the query: File1.Item1=File1.Item2&#13;
I cannot find a syntax that is accepted by the query editor, neither in SQL nor in WL code.&#13;
A simple File1.Item1=File1.Item2 won't do.&#13;
I got as far as ABS(File1.Item1-File1.Item2), but I need the result to be strictly True or False.&#13;
Any ideas?&#13;
&#13;
Regards,&#13;
Piet</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48904-sql-question/read.awp</link><title>SQL Question</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48904-sql-question-48906/read.awp</comments><pubDate>11 Nov 2014 20:34:00 Z</pubDate><description>Perfect, thanks Derek!</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48904-sql-question-48906/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48904-sql-question-48906/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48904-sql-question/read.awp">SQL Question</source><title>Re: SQL Question</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48904-sql-question-48905/read.awp</comments><pubDate>11 Nov 2014 20:16:00 Z</pubDate><description>Piet&#13;
&#13;
Can you not use a CASE statement?&#13;
&#13;
CASE WHEN File1.Item1 = File1.Item2 THEN 1 ELSE 0 END&#13;
&#13;
and sort on the resulting …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48904-sql-question-48905/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48904-sql-question-48905/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48904-sql-question/read.awp">SQL Question</source><title>Re: SQL Question</title></item></channel></rss>
