teralearner
Technical User
I need to calculate number of working days between two date fields. Any sugestions?
I am a SAS user. I am able to use SAS MACRO to write a query
like this:
select date2 - date1 + 1 as days0,
case when '2002-01-01' between date1 and date2 then days0 - 1 else days0 end as days1, .......
all the way to the last Sunday of 2002.
But the query failed after 56 hours with the following error:
ER_LINKDOWN (130): DBC connection broken - Unknown system error: 6128
I am a SAS user. I am able to use SAS MACRO to write a query
like this:
select date2 - date1 + 1 as days0,
case when '2002-01-01' between date1 and date2 then days0 - 1 else days0 end as days1, .......
all the way to the last Sunday of 2002.
But the query failed after 56 hours with the following error:
ER_LINKDOWN (130): DBC connection broken - Unknown system error: 6128