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 > DB2 table DAILYSTOCKDATA -- Another sample database??

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-18-11, 11:51
marc_ marc_ is offline
Registered User
 
Join Date: Aug 2011
Location: Glasgow, UK
Posts: 36
Lightbulb DB2 table DAILYSTOCKDATA -- Another sample database??

Hi,

I've noticed, on several occasions, that in the DB2 manual there's mention to (and sql examples of) a DAILYSTOCKDATA table as if it's an additional SAMPLE database.

I've grepped thru the ~sqllib/samples dir ond searched google and IBMs doc site but to no avail.

Does anyone know if such a beast exists?

Cheers,
Marc
Reply With Quote
  #2 (permalink)  
Old 08-18-11, 23:54
skchandra skchandra is offline
Registered User
 
Join Date: Nov 2010
Posts: 14
Marc,

IBM InfoSphere Warehouse uses different SAMPLE database called GSDB (GO Sales DB).

IBM DB2 9.7 for Linux, UNIX and Windows Information Center

I am not sure whether DAILYSTOCKDATA table is part of this database.

Thanks,
Satheesh
Reply With Quote
  #3 (permalink)  
Old 08-19-11, 07:30
marc_ marc_ is offline
Registered User
 
Join Date: Aug 2011
Location: Glasgow, UK
Posts: 36
Thanks for that Satheesh,

I installed this db and unfortunately it doesn't contain the DAILYSTOCKDATA table. However, it is much better sample db in terms of data volumes, so I think it'll be of use.

IBM must have a secret DB somewhere as there are examples referred to in the docs: DB2PerfTuneTroubleshoot-db2d3e972.pdf (P232) and DB2SQLRefVol1-db2s1e972.pdf (P280-281) -- Either that, or one heck of an imagination to pull SQL like that out of thin air...

Thanks again!
Marc
Reply With Quote
  #4 (permalink)  
Old 08-20-11, 12:58
skchandra skchandra is offline
Registered User
 
Join Date: Nov 2010
Posts: 14
Marc,

I wish the official documents should use sample databases provided with the product. I hope IBM will be revealing the secrecy about the database soon.

Cheers.
__________________
/* SK Chandra */
Reply With Quote
  #5 (permalink)  
Old 08-20-11, 16:10
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by skchandra View Post
Marc,

I wish the official documents should use sample databases provided with the product. I hope IBM will be revealing the secrecy about the database soon.

Cheers.
It is just one table DAILYSTOCKDATA (not an entire database) that is apparently not in the sample database (but has anyone installed the sample database with the latest fixpack 4 to be sure?).

In looking at the SQL examples where DAILYSTOCKDATA is used, it is a table for stock exchange trading data and is fairly self-explanatory as to what is in it. I assume that the examples needed such a table that doesn't already exist in the sample database to explain certain SQL functionality that could not be explained with the existing tables.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #6 (permalink)  
Old 08-21-11, 17:30
marc_ marc_ is offline
Registered User
 
Join Date: Aug 2011
Location: Glasgow, UK
Posts: 36
Thanks Marcus,

So the question now is: are there any corresponding CREATE TABLE ... and INSERT INTO ... statements to supplement the examples that reference the DAILYSTOCKDATA and SP500 tables(join referenced in DB2PerfTuneTroubleshoot-db2d3e972.pdf) ?
Reply With Quote
Reply

Tags
dailystockdata, db2, sample db

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