<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: For each SQL query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-each-sql-query/m-p/12468154#M2000720</link>
    <description>&lt;P&gt;Thank you for visiting SAP
Community to get answers to your questions. Since this is your first question, I
recommend that you familiarize yourself with &lt;U&gt;&lt;A href="https://community.sap.com/resources/questions-and-answers"&gt;Community
Q&amp;amp;A&lt;/A&gt;&lt;/U&gt; , as the overview provides tips for
preparing questions that draw responses from our members. &lt;/P&gt;&lt;P&gt;Should you wish, you can revise
your question by selecting Actions, then Edit.&lt;/P&gt;&lt;P&gt;By adding a picture
to your Profileyou
encourage readers to respond.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Sep 2021 07:48:02 GMT</pubDate>
    <dc:creator>former_member763929</dc:creator>
    <dc:date>2021-09-15T07:48:02Z</dc:date>
    <item>
      <title>For each SQL query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-each-sql-query/m-p/12468153#M2000719</link>
      <description>&lt;P&gt;We have a database that contains data no time like the present booked to projects. We have a live record for a venture, that holds the right time data (imported from SAP one time per week). We additionally have filed records showing the time data at a point on schedule, these are required one time per week, basically, they are previews. It is workable for clients to later place in a solicitation to change the time on the project. &lt;/P&gt;
  &lt;P&gt;In the event that this occurs, the live record will mirror the right ideal opportunity for the task, but the previews will not. I need to compose an inquiry that goes through and refreshes these depictions with the right ideal opportunity for the task, by then. We have a table of SAP data, that has records for each time passage for a venture, showing the undertaking code it was for, the date it was for, and the measure of time. The Historical data table contains the code for the venture and the date the depiction was taken. &lt;/P&gt;
  &lt;P&gt;So I need to compose a SQL question that will go through the chronicled data table and for each line update the time spent by taking a gander at the SAP table and getting untouched entry, for that venture code, before the date that depiction was taken. I'm having genuine trouble doing this in one SQL inquiry, the principal issue being I truly need to run a question for each record in the authentic data table. I keep concocting pages proposing utilizing cursors, however, I don't think a lot about them and continue seeing articles saying they are awful. Any ideas on what kind of inquiry I can use to get in transit with this would be incredible! Basically, I'm learning &lt;A href="https://www.techgeekbuzz.com/how-to-write-pseudocode/" target="_blank"&gt;how to write pseudocode&lt;/A&gt; is:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;For Each Project Code in the hostorical data table, archived on a date, select all time entrys on or before that date.
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;STRONG&gt;Sample tables&lt;/STRONG&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;Historical Project Data                          SAP Data
-----------------------                        ----------------
Project Code | run date                        Project Code | Time | Date
1234         | 01/09/2009                      1234         | 2    | 29/08/2009
9876         | 01/09/2009                      1234         | 5    | 29/08/2009
1234         | 07/09/2009                      9876         | 10   | 02/09/2009
9876         | 07/09/2009                      1234         | 2    | 03/09/2009&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Help me out...&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 07:47:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-each-sql-query/m-p/12468153#M2000719</guid>
      <dc:creator>former_member784810</dc:creator>
      <dc:date>2021-09-15T07:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: For each SQL query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-each-sql-query/m-p/12468154#M2000720</link>
      <description>&lt;P&gt;Thank you for visiting SAP
Community to get answers to your questions. Since this is your first question, I
recommend that you familiarize yourself with &lt;U&gt;&lt;A href="https://community.sap.com/resources/questions-and-answers"&gt;Community
Q&amp;amp;A&lt;/A&gt;&lt;/U&gt; , as the overview provides tips for
preparing questions that draw responses from our members. &lt;/P&gt;&lt;P&gt;Should you wish, you can revise
your question by selecting Actions, then Edit.&lt;/P&gt;&lt;P&gt;By adding a picture
to your Profileyou
encourage readers to respond.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 07:48:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-each-sql-query/m-p/12468154#M2000720</guid>
      <dc:creator>former_member763929</dc:creator>
      <dc:date>2021-09-15T07:48:02Z</dc:date>
    </item>
  </channel>
</rss>

