hello All,
I have been asked to create a report in Dynamics GP (using SRSS) to show customers we have done business with but are no longer doing so.
The criteria is that they have had to purchase a specific class of products in any 3 consecutive months but have not done so in the last 60 days. I am running into a challenge with the last piece of it.
1) Telling the query toget transactions of customers who have had 3 consecutive months with an invoice. The 3 consecutive months can be from anytime, 6 months ago or two years ago. The end result should be a list of former customers that sales reps can pursue.
Below is the query I am working from. I am running SQL Server 2014
Any help would be much appreciated. thanks!
select
RM20101.CUSTNMBR As Customer
From RM20101
left Join SOP30300
On RM20101.DOCNUMBR=SOP30300.SOPNUMBE
left join IV00101
on...