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 S1SSP_STU_SPK
  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

Health Benefits of Believing

An  interesting new study has been released linking faith in God to higher survival rates in patients who have had a transplant.

“The research found that 93.5 per cent of religious worshippers where still alive four years after an operation while only 79.5% of their non-religious counterparts survived.

The statistics suggest that the mortality rate for a liver transplant patient who does not believe in God is three time higher than for those who do – 20.5 per cent compared to 6.6 per cent.”

It will be interesting to see what the atheists think about this seeing they believe religion is a waste of time. Interestingly, wouldn’t these statistics of religion helping patients to survive longer fit into their theory of ‘Survival of the fittest?’ meaning that belief serves a purpose and these believers have a survival advantage over those that do not believe?

via http://www.news.com.au/breaking-news/scientists-link-faith-transplant-survival/story-e6frfku0-1225904720139

Hello World! The search for a Word Press editor.

The time has come to revive my blog, and what better way to do this than start from scratch. I have told myself that it is time to start taking internet marketing seriously and as such, I am looking at getting up to speed with all of the new social networking technologies and what impact they can have on ecommerce businesses.

So before I get too serious, I need to find a decent editor for word press, and what I mean by that is a word press editor that can be run from windows, is easy to use and has some administrative features so I do not have to log into word press.

More >