2018 Nov 29 3:16 AM
Hi folks,
I'm new in B1 and SQL so i need some help with this issue. A client asked for a query report for active and inactive BP based on GRPO transaction. The inactive BP report does not fit my client's requirement. There are two requirement;
What i'm struggling with is the second requirement which i could not understand how to achieve that. It would be great help if you can help me understand this.
Below are the query for what i;ve done so far (active bp within 1 year), i don't know if this even correct.
SELECT distinct getdate() as 'Current Date',T0.[DocDate], T1.[CardCode], T1.[CardName]
FROM OPDN T0 INNER JOIN OCRD T1 ON T0.[CardCode] = T1.[CardCode]
WHERE (datediff(dd,T0.[DocDate],getdate())) < 365
Additional info, i'm using B1 9.2 PL11.
Hi folks,
I'm new in B1 and SQL so i need some help with this issue. A client asked for a query report for active and inactive BP based on GRPO transaction. The inactive BP report does not fit my client's requirement. There are two requirement;
What i'm struggling with is the second requirement which i could not understand how to achieve that. It would be great help if you can help me understand this.
Below are the query for what i;ve done so far (active bp within 1 year), i don't know if this even correct.
SELECT distinct getdate() as 'Current Date',T0.[DocDate], T1.[CardCode], T1.[CardName]
FROM OPDN T0 INNER JOIN OCRD T1 ON T0.[CardCode] = T1.[CardCode]
WHERE (datediff(dd,T0.[DocDate],getdate())) < 365
Additional info, i'm using B1 9.2 PL11.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |