![]() | |
#1
| |||
| |||
|
|
http://www.ibm.com/developerworks/da...S_CMP=cn-a-db2 |
#2
| |||
| |||
|
|
http://www.ibm.com/developerworks/da...S_CMP=cn-a-db2 |
#3
| |||
| |||
|
|
"Willem Fischer" <w.l.fischer (AT) googlemail (DOT) com> wrote in message news:54f1c260-3aaf-4f7e-bd28-4ee13122ada9 (AT) z26g2000yqm (DOT) googlegroups.com... Very nice article! While I was reading it, a few questions about "best practices" came up in my mind: 1) The table HISTORY has no primary key or index at all. Is this still a clean approach, even if the table may hardly ever be read (I suppose), save be searched? |
|
2) The table STOCK (others do it similarly) uses the ITEM PK and the WAREHOUSE PK as it's primary key. I've seen approaches where a surrogate key is used for every table in the database. Is the use of surrogate keys everywhere just a matter of taste or can I clearly say it incurs noticeable costs? |
|
3) The implementation makes heavy use of table functions. We try to avoid functions and stored procedures where we can to avoid having the code split into application and database parts. Would you recommend functions and stored procedures? Maybe depending on the SQL skills of the programmers? |
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |