Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How do I find employee who are hired 6 weeks ago from current running weeks?
My current code executes a query in access DB and filters the data based on WeekNumber Column given by below query..
SQL
IIf(Weekday([HiredDate])=7,[HiredDate],[HiredDate]-Weekday([HiredDate])) AS TrainingStart, 
Date()+6-Weekday(Date()) AS EndOfWeek, 
DateDiff("ww",[TrainingStart],[EndOfWeek]) AS WeekNumber

We do not have access db anymore and i need to get the data from Oracle db.
How do I write to get same data in this situation?

What I have tried:

I tried to re create the query expression from previous access db query which I am not sure is correct
Posted
Updated 26-Jul-19 3:26am
v2

Have a look through this DBA-Village[^]

I have no experience in Oracle was found in a Google search
 
Share this answer
 
I have already told you how to convert an Access query using those functions to Oracle on your earlier question How do I determine week number form start date to end of today's week ?[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900