<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>12 Dec 2015 15:52:00 Z</lastBuildDate><pubDate>11 Dec 2015 19:52:00 Z</pubDate><description>Here is a question for SQL experts in this group. After much googling, I came up with a SQL Server query that gives the data I need. I have to sum multiple rows in one table for only the most recent posting date.&#13;
&#13;
So I tried to Reverse Engineer the Query and get the following: https://www.dropbox.com/s/gnoxhuon38pbq0m/SQL_InvValue.png?dl=0&#13;
&#13;
I need to add selection parameters so I created another query that uses this query and a manually entered join linking on ID. However, that does not work so far. It runs the internal query and then does not do the join with or without parameters specified so the results window just goes away.&#13;
&#13;
So the questions are:&#13;
How can I redo the SQL code so that it will reverse engineer?&#13;
Or how can I add parameters to the SQL code for other fields in the PART table?&#13;
Or how can I do the equivalent of the MAX(PostingDate) to get the most recent Inventory_Balance entries for a Part_ID in the query editor and then sum the fields so I end up with only one row per Part_ID?&#13;
&#13;
Any suggestions would be greatly appreciated.?</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55453-reverse-engineering-sql-server-query-errors/read.awp</link><title>Reverse Engineering of an SQL Server query errors.</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/55453-reverse-engineering-sql-server-query-errors-55458/read.awp</comments><pubDate>12 Dec 2015 15:52:00 Z</pubDate><description>Hi Paulo,&#13;
&#13;
It appears you are absolutely correct. I have to build my WHERE clause in the string instead of using parameters, b…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55453-reverse-engineering-sql-server-query-errors-55458/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55453-reverse-engineering-sql-server-query-errors-55458/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55453-reverse-engineering-sql-server-query-errors/read.awp">Reverse Engineering of an SQL Server query errors.</source><title>Re: Reverse Engineering of an SQL Server query errors.</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55453-reverse-engineering-sql-server-query-errors-55457/read.awp</comments><pubDate>12 Dec 2015 12:43:00 Z</pubDate><description>Hi Jeff,&#13;
&#13;
the helpfile noted at Sub-query:&#13;
&#13;
Limits:&#13;
•The ORDER BY statement is not allowed in the sub-queries.&#13;
•The sub-qu…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55453-reverse-engineering-sql-server-query-errors-55457/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55453-reverse-engineering-sql-server-query-errors-55457/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55453-reverse-engineering-sql-server-query-errors/read.awp">Reverse Engineering of an SQL Server query errors.</source><title>Re: Reverse Engineering of an SQL Server query errors.</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55453-reverse-engineering-sql-server-query-errors-55454/read.awp</comments><pubDate>11 Dec 2015 20:13:00 Z</pubDate><description>In some situations, normally with several sub-selects or specific db sintax or commands you can't use the query editor.&#13;
In this…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55453-reverse-engineering-sql-server-query-errors-55454/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55453-reverse-engineering-sql-server-query-errors-55454/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55453-reverse-engineering-sql-server-query-errors/read.awp">Reverse Engineering of an SQL Server query errors.</source><title>Re: Reverse Engineering of an SQL Server query errors.</title></item></channel></rss>
