Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

row id

Status
Not open for further replies.

Cap2010

Programmer
Mar 29, 2000
196
CA
hi,

Want to count rowid. One row by one row
and on each do a calculation and than go to next or previous row.

In oracle it is Rowid, wonder how to do in SAS for going by row.
e.g. in Oracle
Select * from table1 where rowid > rowid+1


Captain2010
 
Is this a SAS question?

Jet does not have row ids unless you add them like any other data item.

 
BNPMike,

It is through SQL to find out row id.

cap2010
 
hi Cap2010,

Is there any particular reason why you want a row id? what problem are you trying to solve?
 
Select * from table1 where rowid > rowid+1
Are you sure this instruction returns something ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Cap2010

SQL doesn't provide row numbers. Maybe some systems do (Oracle?). Jet doesn't. SQL doesn't require it to.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top