title: Deleting with SQL
body: <h2>VB 2012</h2>
  <p>table 1</p>
  <pre><code>Kubun |Name | Code | Date   | Time
  1     |AA   | 10001|20210101|8:30
  1     |AA   | 10001|20210101|9:00
  1     |BB   | 10002|20210101|8:30
  1     |BB   | 10002|20210101|9:00
  2     |AA   | 10001|20210101|14:00
  2     |AA   | 10001|20210101|17:30
  2     |BB   | 10002|20210101|14:00
  2     |BB   | 10002|20210101|17:30
  </code></pre>
  <p>I want to delete all data except minimum time from Kubun 1 and maximum time from Kubun 2.
  I would be grateful if you could help this solution.</p>