fidlstix
Programmer
- Feb 4, 2005
- 6
Let me start by saying - feel free to roll your eyes now as I am sure you will be doing so by the end...extreme novice question.
A question of design - I have a db that has a base table that has defect info, with a PK. The info is pulled out of our siebel system and will never be edited by the access users. However, it will be edited by admin people who access the siebel system.
The end user's data is held in a separate table where they rank the order in which they want the defects to be addressed. The defect PK from the main tbl is held in the ranking table.
I have a choice when updating data in the main table to either recreate the table everytime the data is refreshed, or do a row by row check of id's and if it exists - make sure that it updates 5-7 columns (what the admins will be changing) of the 15 in the table, if it doesn't exist create the record.
I belive the correct choice is to do the updates line by line. But if it is 6 of 1 and a half dozen of the other - it's easier for me to make the table over and over...
What are the pitfalls of doing a mk tble every time? can i expect the db to balloon to enormous proportions?
This isn't a high volume high usage db.
I guess i am looking for a push to do it 'the right way' if there is one.
Thx Much in advance,
Laura
A question of design - I have a db that has a base table that has defect info, with a PK. The info is pulled out of our siebel system and will never be edited by the access users. However, it will be edited by admin people who access the siebel system.
The end user's data is held in a separate table where they rank the order in which they want the defects to be addressed. The defect PK from the main tbl is held in the ranking table.
I have a choice when updating data in the main table to either recreate the table everytime the data is refreshed, or do a row by row check of id's and if it exists - make sure that it updates 5-7 columns (what the admins will be changing) of the 15 in the table, if it doesn't exist create the record.
I belive the correct choice is to do the updates line by line. But if it is 6 of 1 and a half dozen of the other - it's easier for me to make the table over and over...
What are the pitfalls of doing a mk tble every time? can i expect the db to balloon to enormous proportions?
This isn't a high volume high usage db.
I guess i am looking for a push to do it 'the right way' if there is one.
Thx Much in advance,
Laura