If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > ROW_NUMBER function fails sometimes with SQL0440N

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-24-06, 01:47
ggnanaraj ggnanaraj is offline
Registered User
 
Join Date: Aug 2002
Location: Chennai, India
Posts: 171
ROW_NUMBER function fails sometimes with SQL0440N

The below SQL executes some times and does not execute at other times but fails with SQL0440N error.

select row_number() over(order by last_reset_timestamp) as number, snapshot_timestamp, last_reset_timestamp, table_schema, table_name, table_type, rows_read, rows_written, overflow_accesses, page_reorgs from snapshot.snapshot_table order by last_reset_timestamp;

Any idea why?

TIA.
Reply With Quote
  #2 (permalink)  
Old 04-03-06, 07:58
ggnanaraj ggnanaraj is offline
Registered User
 
Join Date: Aug 2002
Location: Chennai, India
Posts: 171
The SQL fails after the system clock of the database server is changed to about 1 year before the current date. After the system clock is switched back to current date, the SQL succeeds.
Reply With Quote
  #3 (permalink)  
Old 04-03-06, 09:13
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Gnanaraj, Thanks for taking time to update the forum.

Your thoughfulnesss is much appreciated.

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On