This should be a simple question.
I'm trying a query like:
SELECT Distinct Left(AuditNum, 4) AS Blah
FROM Audit
where Blah = 'Fred'
When I attempt to execute the query I get prompted for a parameter value "Blah".
Can't I use a field alias in my where clause?
Thanks
I'm trying a query like:
SELECT Distinct Left(AuditNum, 4) AS Blah
FROM Audit
where Blah = 'Fred'
When I attempt to execute the query I get prompted for a parameter value "Blah".
Can't I use a field alias in my where clause?
Thanks