Avatar of d27m11y d27m11y
d27m11y d27m11yFlag for United States of America

asked on 

How to get previous week friday based on sysdate.

How to get previous week friday based on sysdate.  We are planning to include this logic on a job that runs daily.

Please advise !
Oracle Database

Avatar of undefined
Last Comment
johnsone
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Try this:
select next_day(sysdate-7,'FRIDAY') from dual;
ASKER CERTIFIED SOLUTION
Avatar of johnsone
johnsone
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Oracle Database
Oracle Database

Oracle is an object-relational database management system. It supports a large number of languages and application development frameworks. Its primary languages are SQL, PL/SQL and Java, but it also includes support for C and C++. Oracle also has its own enterprise modules and application server software.

81K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo