-
-
MS Reporting Services – Dynamic SQL
June 21, 2011 By MichaelOver the last couple of weeks, I have started to use and get my head around Microsoft Reporting Services. As with all new products, it takes Read More » -
Playstation Welcome Back–Missing Games
June 05, 2011 By MichaelAfter over a month of waiting for the network to come back up, and days of trying to log into it just to receive error messages, Read More » -
Legal Document & Legal Forms
June 04, 2011 By MichaelDepending on your occupation or circumstances, at times it will be necessary to source and complete a legal document. Whether it be a will and testament, Read More » -
Integration Services – Multiple Environments
May 27, 2011 By MichaelBest Practice with version control of DB schemas.. So I am currently working a Microsoft data integration project (more on that later). For the first time, Read More » -
Happiness about life choices
October 05, 2010 By MichaelInteresting article in the Australian today about lifestyle choices and theaffect that can have upon your psychological wellbeing. Key factors that contribute to happiness include: healthy Read More »
-
00904. 00000 – invalid identifier
I have been writing some scripts in oracle and have just encountered and solved a niggly little problem. Syntax difference between SQL Server and Oracle threw me.
On performing this query, was receiving this error: 00904. 00000 - “%s: invalid identifier”.
WITH tempTab AS
(
SELECT a,b,c,d,e, ROW_NUMBER() OVER (partition by a ORDER BY e) AS “RowNums”
FROM tableName
ORDER BY aASC
)
SELECT * From tempTab WHERE RowNums = 1
Because the RowNums is a created column name, the referred RowNums outside of the WITH clause must also be referenced in the same manner i,e “RowNums”
Logical right? ;P





