Summary In this post, you can learn how to get count of number of Saturdays and sundays in given date range using Oracle and PLSQL . Sometimes you want to return the number of week days between two dates (i.e., the number of days excluding the weekend). The general strategy is to construct an expression that does the following: Take two dates that you want to get days in between and loop date range. In loop, get day from date. If day is Saturday (6) and Sunday (7) as per Julian Calendar then 1 and take weekend day count otherwise 0 and take weekday day count Using PLSQL DECLARE weekday_CNT NUMBER := 0 ; weekend_CNT NUMBER := 0 ; v_date DATE...