Quantcast
Channel: SCN: Message List - SAP Advantage Database Server
Viewing all articles
Browse latest Browse all 997

Re: Get count days between two dates without weekends with SQL

$
0
0

another option would be to write astored procedure that returns a table containing all dates between two given values - including dayofweek, holidays and other important information. Then you can just select count(*) from ... where dayofweek<>0 and dayofweek<>6.


Viewing all articles
Browse latest Browse all 997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>