I am trying to provide a list of all current vendor's from the PM00200 table that have had activity within the last 6 months. What's the best way to do this?
*This post is locked for comments
you could use a subquery
SELECT *
from pm00200
where [vendorid] in (select [vendor id] from payablestransactions where [document date]>'2/3/2014')
Will that tell me that there was activity within 6 months? Not that something was changed on the vendor (like address, phone number, etc.) I am referring to activity made by/for the vendor (invoice, payment, etc.). Also, how can I specify the number of months to check compared to the current date instead of hard coding the dates. Another customer might want to see all vendors who had activity 8 months prior to the current date.
Thank you!
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.