IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

New DB2 tables creation


 
IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: :: View next topic  
Author Message
kishpra

New User


Joined: 24 May 2010
Posts: 92
Location: Pune

PostPosted: Tue Feb 02, 2016 7:00 pm
Reply with quote

Hi All,

I want to create a DB2 table which will have columns like Emp No, Seq No, Acct No, Rate, Hours Worked, etc. This table will be loaded monthly using an input file which will have Emp No, Seq No and Acct No same and other values getting changed/updated OR New Emp No, SeqNo being introduced.

I want to append the new data everytime it is loaded.

Please let me know how to come up with Key (Primary key) definitions along with the indexes for defining this table.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2429
Location: Hampshire, UK

PostPosted: Tue Feb 02, 2016 8:24 pm
Reply with quote

Ask your DBA - indicies depend on usage.
Back to top
View user's profile Send private message
kishpra

New User


Joined: 24 May 2010
Posts: 92
Location: Pune

PostPosted: Tue Feb 02, 2016 8:50 pm
Reply with quote

Thanks Nic.

Can you please let me know some of the things that needs to be taken care when defining a table without primary key since the data needs to be appended every time. Also how to come uo with indexes for the same to improve the performance.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7312
Location: Inside the Matrix

PostPosted: Tue Feb 02, 2016 8:56 pm
Reply with quote

I think re-read the first three words of Nic's response.

What you are doing, how you are doing it, and whether you should be doing it, and how it fits into your DB2 is all related to your site.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts insert into session tables with UR DB2 0
No new posts Sync logic between VSAM files and DB2... COBOL Programming 9
No new posts Need to delete inactive records from ... DB2 5
No new posts DB2 Unload / Load Multiple tables DB2 8
No new posts SYSIBM Catlog tables to see DDL chang... DB2 2

Back to Top