Here’s a SQL statement that works perfectly in Transact-sql
SELECT a.Account_ID, a.First_Name, a.Last_Name, m.number
FROM Account a,
(SELECT R_Account_ID, COUNT(Notification_ID) AS number
FROM Rcv_Send_Event_Notf
GROUP BY R_Account_ID) m
WHERE a.Account_ID = m.R_Account_ID
But it does not in Oracle. It is complaining about m.number in out most select statement. I believe also because of AS number in the 3rd line.
invalid user.table.column, table.column, or column specification…
Is there a different way to alias a column in Oracle?
Thanks for helping
Numberis a keyword in Oracle, so you can’t use it as an alias without using double quotes. Most would advise against using it as an alias, period.