Ending in 4 weeks from sysdate

Hi Guys,

Just wanted to check this was correct:

AND projected_end_date = sysdate + 4*7

Open in new window


Does the above look at anyone who is about to leave 4 weeks before their projected_end_date?

Thanks
Richiep86Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Naveen KumarProduction Manager / Application Support ManagerCommented:
are you not getting correct output with this : AND projected_end_date = sysdate + 28 ?

This will give all projected end dates which are upcoming in the next 28 days
 AND projected_end_date <= sysdate + 28

Also does your projected_end_date column is a date data type right ?

Thanks,

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Gerwin Jansen, EE MVETopic Advisor Commented:
How about you do some testing? Try selecting the fields you want displayed, while adding the sysdate + something:

select col1, col2, sysdate, projected_end_date, sysdate + 4*7, projected_end_date - 4*7, projected_end_date + 4*7
from table;
Richiep86Author Commented:
Thanks for the advice. I havent been able to test this yet but wanted to make sure i was heading in the right direction.

Thanks Nav_kum
Naveen KumarProduction Manager / Application Support ManagerCommented:
No worries. Happy to help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.