HI,
I'm new to PL/SQL. Please help me.
select COUNT(*) from table1 where trunc(tradeDone) >= trunc(sysdate)-1;
In this query I want to subtract sysdate-3 if sysdate is Monday.
Basically in the where clause I should compare tradeDone greater or equal to last working day. Kindly note no bank holidays needs to be considered. So if sysdate is Monday I have to point to friday and count the number of rows.
Please help
Thanks
Regards
Jim