I am using SQL Server. I have the following query:
select
convert(varchar(10), MAX(closedate), 101)
from
(select PSer.Signin_Date as closedate
from PSer
where ID = '12')
Note that the content within my from is more complicated than the simplified version I have.
I get a message saying
Invalid column name closedate
Make sure you’re giving your subquery an alias.