title: How to get the WORKING day diff in db2 without saturdays and sundays?
body: <p>I have a table with some dates intervals like this:</p>
  
  <pre><code>|id|group|date_start|date_end|
  </code></pre>
  
  <p>and I would like to make a view that looks like:</p>
  
  <pre><code>|id|working_days_diff|
  </code></pre>
  
  <p>and </p>
  
  <pre><code>|id|group|working_days_diff|
  </code></pre>
  
  <p>How may I do something like this?
  thanks</p>
  
  <p>I was thinking about a custom function that will loop for each day in the difference and sum if DAYOFWEEK is not saturday and sunday.. but I don't know how to make...</p>