<?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: open sql statement - delete specific records from the database in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-statement-delete-specific-records-from-the-database/m-p/12444047#M1998939</link>
    <description>&lt;P&gt;Must it be done with a single SQL statement? If it does, is that a test/exam question? What will we get if we pass the exam for you?&lt;BR /&gt;If it's not, why do you bother about the way to do it. Just think about an algorithm that does the work and code it. Using sub-selects you should be able to do that, but I really don't like them, so I will not think about it, sorry.&lt;/P&gt;&lt;P&gt;At least not until you'll show you've put some effort while thinking about it.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Sep 2021 13:06:52 GMT</pubDate>
    <dc:creator>VXLozano</dc:creator>
    <dc:date>2021-09-07T13:06:52Z</dc:date>
    <item>
      <title>open sql statement - delete specific records from the database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-statement-delete-specific-records-from-the-database/m-p/12444046#M1998938</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I have a couple of records that look like this:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1971735-bild2.png" /&gt;&lt;/P&gt;
  &lt;P&gt;TYPE and CODE are each two key fields&lt;/P&gt;
  &lt;P&gt;The Goal:&lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" style="font-size: 15px; color: inherit;" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1971736-bild1.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" style="font-size: 15px; color: inherit;" /&gt;&lt;/P&gt;
  &lt;P&gt;The ones marked in red are the records that have to be deleted.&lt;/P&gt;
  &lt;P&gt;How it works: It should delete the data records which already exist of the TYPE at least 4 times. The smallest CODE should always be deleted. &lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Important&lt;/STRONG&gt;: CODE is a char3 field.&lt;/P&gt;
  &lt;P&gt;Does anyone know how I can do that with open sql in sap?&lt;/P&gt;
  &lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 12:32:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-statement-delete-specific-records-from-the-database/m-p/12444046#M1998938</guid>
      <dc:creator>former_member690993</dc:creator>
      <dc:date>2021-09-07T12:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: open sql statement - delete specific records from the database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-statement-delete-specific-records-from-the-database/m-p/12444047#M1998939</link>
      <description>&lt;P&gt;Must it be done with a single SQL statement? If it does, is that a test/exam question? What will we get if we pass the exam for you?&lt;BR /&gt;If it's not, why do you bother about the way to do it. Just think about an algorithm that does the work and code it. Using sub-selects you should be able to do that, but I really don't like them, so I will not think about it, sorry.&lt;/P&gt;&lt;P&gt;At least not until you'll show you've put some effort while thinking about it.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 13:06:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-statement-delete-specific-records-from-the-database/m-p/12444047#M1998939</guid>
      <dc:creator>VXLozano</dc:creator>
      <dc:date>2021-09-07T13:06:52Z</dc:date>
    </item>
  </channel>
</rss>

