Hello People,
I am having problems with a WHERE(…OR..AND) that I am trying to implement in a Query. I am trying to write the query so only those records that have been updated in the last 30 days and updated only by John Smith will show up. I’ve tried a lot of combinations but nothing seems to be working. I would really appreciate some help.
Here’s how I’ve written it up right now:
WHERE (((IndustryCurrentEnvironment.UpdateDate)>Date()-30)
OR (((IndustryOutlook.UpdateDate)>Date()-30))
OR (((IndustryPositives.UpdateDate)>Date()-30))
OR (((ParentCreditFundamentals.UpdateDate)>Date()-30))
AND ((IndustryCurrentEnvironment.AnalystName)="John Smith")
AND ((IndustryOutlook.AnalystName)="John Smith")
AND ((IndustryPositives.AnalystName)="John Smith")
AND ((ParentCreditFundamentals.AnalystName)="John Smith")
)
Thanks,
Sam
I am having problems with a WHERE(…OR..AND) that I am trying to implement in a Query. I am trying to write the query so only those records that have been updated in the last 30 days and updated only by John Smith will show up. I’ve tried a lot of combinations but nothing seems to be working. I would really appreciate some help.
Here’s how I’ve written it up right now:
WHERE (((IndustryCurrentEnvironment.UpdateDate)>Date()-30)
OR (((IndustryOutlook.UpdateDate)>Date()-30))
OR (((IndustryPositives.UpdateDate)>Date()-30))
OR (((ParentCreditFundamentals.UpdateDate)>Date()-30))
AND ((IndustryCurrentEnvironment.AnalystName)="John Smith")
AND ((IndustryOutlook.AnalystName)="John Smith")
AND ((IndustryPositives.AnalystName)="John Smith")
AND ((ParentCreditFundamentals.AnalystName)="John Smith")
)
Thanks,
Sam