OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

SQL Row() function, is it missing or am I missing something?

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base
View previous topic :: View next topic  
Author Message
taecap2u
Newbie
Newbie


Joined: 03 Aug 2012
Posts: 1
Location: Buffalo NY

PostPosted: Fri Aug 03, 2012 9:03 am    Post subject: SQL Row() function, is it missing or am I missing something? Reply with quote

I need to generate a report with line numbers on it.
This will be used in a medical receipts reimbursement system.
I have attempted to use the ROW_NUMBER() option but get a syntax

SELECT ROW_NUMBER() OVER (ORDER BY "Date") AS "ROWNUM", "Date" as "date", "ServiceProvider" FROM "Receipts"

Any ideas?

Tom
Back to top
View user's profile Send private message Visit poster's website
Arineckaig
OOo Advocate
OOo Advocate


Joined: 01 Mar 2004
Posts: 332

PostPosted: Fri Aug 03, 2012 9:31 am    Post subject: Reply with quote

Welcome to the forum.

What database back-end are you using with Base? I understand ROW_NUMBER() OVER is available for DB2, Oracle and SQL Server, but I do not know which other DBMS may now have a similar function: the embedded HSQLDB 1.8 does not so far as I know.
_________________
When this issue has been resolved, it helps other users of the forum if you add the word [Solved] to the Subject line of your 1st post (edit button top right).
OOo 3.4.1 and MySQL on MS Windows XP and Ubuntu
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group