I’m looking for the Oracle (10g) equivalent of:
DATEADD(weekday, -3, GETDATE())
from T-SQL (SQL Server) . This subtracts 3 weekdays from the current date. I’m not concerned about holidays or anything like that (and I can truncate the time part off myself). Just excluding weekends is fine.
It looks like you need to create a UDF.
Courtesy of Larry Benton, from here.