<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>22 Jun 2017 10:03:00 Z</lastBuildDate><pubDate>20 Jun 2017 11:50:00 Z</pubDate><description>Hello All,&#13;
&#13;
I trust this finds you all well.&#13;
&#13;
I am building two queries to be used in a join. I would like to query data from two different months. For one month I want the values to be positive (+ve) and the other month Negative (-ve). I want to build a report out of the 'joined queries' such that query1.value+query2.value will give me the net of the two [ query1.value(+ve) + query2.value (-ve) ]=Net.&#13;
&#13;
How do I get the queryvalue "negated" in the query builder?&#13;
&#13;
Thanks in advance.&#13;
&#13;
Sam</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61372-wd21-how-negate-value-when-defining-query/read.awp</link><title>WD21 - How to negate a value when defining a Query</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/61372-wd21-how-negate-value-when-defining-query-61406/read.awp</comments><pubDate>22 Jun 2017 10:03:00 Z</pubDate><description>Sam,&#13;
&#13;
you could also use a UNION for that&#13;
&#13;
SELECT SUM(netvalue) as netvalue, othervalue1, othervalue2 FROM&#13;
(&#13;
SELECT table1…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61372-wd21-how-negate-value-when-defining-query-61406/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61372-wd21-how-negate-value-when-defining-query-61406/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61372-wd21-how-negate-value-when-defining-query/read.awp">WD21 - How to negate a value when defining a Query</source><title>Re: WD21 - How to negate a value when defining a Query</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61372-wd21-how-negate-value-when-defining-query-61397/read.awp</comments><pubDate>21 Jun 2017 17:16:00 Z</pubDate><description>1 Make the two queries by selecting the right data. data --Between two dates -- You can select this in the editor or add two par…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61372-wd21-how-negate-value-when-defining-query-61397/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61372-wd21-how-negate-value-when-defining-query-61397/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61372-wd21-how-negate-value-when-defining-query/read.awp">WD21 - How to negate a value when defining a Query</source><title>Re: WD21 - How to negate a value when defining a Query</title></item></channel></rss>
