dbTalk Databases Forums  

Interactive SQL and rownumbers

comp.databases.rdb comp.databases.rdb


Discuss Interactive SQL and rownumbers in the comp.databases.rdb forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Peter Grevel
 
Posts: n/a

Default Interactive SQL and rownumbers - 09-08-2003 , 02:20 PM








I want t present a list from a table which contains a rownumber, see
example.
I thought this is very basic. But I cannot find out how

How do I handle this ?

select FLD1 from TABLE1

AA
BB
CC
XX

I want to present it as:


1 AA
2 BB
3 CC
4 XX


Another problem I have is how to pass a value from a previous selected
record to the current record, when selecting from a table.
I think it is the some problem I have as as I mention above.

I'm using Oracle RDB for OpenVMS

Please post a reply with your comments or send me mail.

Thanks in advance,

Peter Grevel



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.