Advertisement

04.28.2008 at 07:31PM PDT, ID: 23360872
[x]
Attachment Details

How to get row number with SELECT statement

Asked by Mr_Peerapol in Informix Database

Tags: IBM, Informix, Select Row Number

I would like to know whether it is possible to get row number with SELECT statement in Informix. If yes, how?

For example, SELECT Some_Function() AS ROWNUM, Col1, Col2 FROM TableA
My expected result would be:

ROWNUM | Col1 | Col2
1 | XXX | YYY
2| AAA | BBB
...

Thank you in advanceStart Free Trial
 
Loading Advertisement...
 
[+][-]04.29.2008 at 12:15PM PDT, ID: 21465175

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.29.2008 at 10:27PM PDT, ID: 21468274

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.29.2008 at 11:01PM PDT, ID: 21468379

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Informix Database
Tags: IBM, Informix, Select Row Number
Sign Up Now!
Solution Provided By: Tengri_Lethos
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.30.2008 at 06:49AM PDT, ID: 21470638

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628