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 > view definition

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-21-09, 02:45
nittal nittal is offline
Registered User
 
Join Date: Jul 2008
Posts: 131
view definition

Hi,
I am using db v9.5 ESE on windows.

Default View 'Snapappl_info' defined while creating database is defined as:
CREATE VIEW SYSIBMADM.SNAPAPPL_INFO (snapshot_timestamp, agent_id, ...) AS SELECT snapshot_timestamp, ..., is_system_appl FROM TABLE(SYSPROC.SNAP_GET_APPL_INFO_V95('')) as T

but i can find no table with name this view is using, so where is the information in view being fetched from?
Reply With Quote
  #2 (permalink)  
Old 01-21-09, 02:57
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
Quote:
Originally Posted by nittal
... TABLE(SYSPROC.SNAP_GET_APPL_INFO_V95(''))
SNAP_GET_APPL_INFO_V95() is a so-called table function: it returns a table.
That explains the keyword TABLE: "from" expects a table/view/nested select, not a function.
Since that function is in the SYSPROC schema, it should be documented in the DB2 SQL manuals under the section "table functions". (Didn't verify, though.)
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
  #3 (permalink)  
Old 01-27-09, 02:46
nittal nittal is offline
Registered User
 
Join Date: Jul 2008
Posts: 131
thanks peter!
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