This is probably an easy one, but for the life of me I can't understand why this isn't working.
Whenever I go run the following SQL expression I get a message asking for a value for "T1.N".
SELECT T1.State, Count(T1.Outlet), T1.N
FROM (SELECT State, Outlet, Count(Outlet) AS N FROM ExtractEvents AS T1 WHERE EventCode = "IN" OR "RETURNED" GROUP BY State, Outlet)
GROUP BY T1.State
Why is the reference not working?
Thanks