troubleshooting Question

Get the date in the Report

Avatar of jaymz69
jaymz69 asked on
Microsoft SQL Server 2008
3 Comments1 Solution213 ViewsLast Modified:
Since I am doing a GROUP BY user

I always get the error
"Column 'OPENQUERY.PCHDATE' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause."

All I really need is the Date of the transaction from the SELECT

I tell the select to CURRENT_DATE - DAYS -- AS400 SQL

is there a way to pass it on to the subscription text in the email?

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros