You need to sign in to do that
Don't have an account?
Report Query
I have a custom object with a master-detail relationship with the contact object. The custom object has a date field.
I'm wanting to generate a report of contacts that don't have a custom object record with a date within the last 7 days.
Hi,
Select the report type as Contact and Custom object.
In this apply the filter on date like Custom Date field is greater than LAST 7 DAYS.
Thanks,
Kodisana
This actually returns no results.
What I'm looking for is effectively
select distinct * from contact where contact not in ( select * from contact where contact.data equals last week )
HI,
May be code helpful for this.
Date d= System.today();
Date d1 = d.addDays(-7);
select distinct * from contact where Date > d1
Thanks,
Kodisana