Skip to content
Advertisement

Can I calculate there’s how many weekend days between two dates in SQL Server?

I’m calculating income of hiring equipments for a report. In that, hiring cost in weekend days will be plus 10% more if compare with normal days. So how can I calculate there’s how many weekend days between two dates. And in report query, I can’t use DECLARE also. Can someone help me to do this. Thank you so much

Advertisement

Answer

This should work:

http://sqlfiddle.com/#!3/d41d8/5707/0

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement