![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am a programmer with extensive exposure working with Oracle databases. However, up until now, I have been working with databases that were either designed without my input, or for other applications. This is my first forray into the actual design of the database. I have been doing some reading and am just starting to grasp the concept of using a "dumb" primary key in combination with a unique key. I understand the theory, but am not 100% sure on the practice. How does one go about working with tables that are linked via "dumb" keys? Is the best practice to create a View that gives you all the data you need to see, and edit it accordingly? As a newbie to this process, I appreciate any time you may take to respond. If you can point me to any online literature that would also be appreciated. Thanks in advance, Chris |
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
I am a programmer with extensive exposure working with Oracle databases. However, up until now, I have been working with databases that were either designed without my input, or for other applications. This is my first forray into the actual design of the database. I have been doing some reading and am just starting to grasp the concept of using a "dumb" primary key in combination with a unique key. I understand the theory, but am not 100% sure on the practice. How does one go about working with tables that are linked via "dumb" keys? Is the best practice to create a View that gives you all the data you need to see, and edit it accordingly? As a newbie to this process, I appreciate any time you may take to respond. If you can point me to any online literature that would also be appreciated. Thanks in advance, Chris |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Ed, Thanks for the input. I am most definitely in contact with the DBA who will be over-seeing the database. He is in favor of the "dumb" key concept. here is the reasonig behind our logic. In this industry (music & entertainment distribution), the manufacturers assign a "part number" to their products as a way of uniquely identifying them. In our own product table, if we were to use that part number as the intelligent key to our product table, we would run into a problem because the part numbers actually change (more often than you would imagine). |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
Frank, While I can definitely appreciate the humor in your post, perhaps you are not familiar with the recording industry ... Let me most assuredly inform you that in this industry part numbers can (and do) change all the time. For example: Record label A manufactures and distributes Album X from artist Y - part number is 123 and UPC is 789. Record label B acquires/buys/whatever record company A. Album X by artist Y is now part number 456 from company B with the same 789 UPC code (unitl they run out of inventory, at which time the UPC will change to reflect the new vendor if they reprint the title). Again - this is just one tiny illustration of an EXTREMELY common event. I may not be a DBA, but I certainly know my business. Thanks, Chris |
#10
| |||
| |||
|
|
Frank, While I can definitely appreciate the humor in your post, perhaps you are not familiar with the recording industry ... Let me most assuredly inform you that in this industry part numbers can (and do) change all the time. For example: Record label A manufactures and distributes Album X from artist Y - part number is 123 and UPC is 789. Record label B acquires/buys/whatever record company A. Album X by artist Y is now part number 456 from company B with the same 789 UPC code (unitl they run out of inventory, at which time the UPC will change to reflect the new vendor if they reprint the title). Again - this is just one tiny illustration of an EXTREMELY common event. I may not be a DBA, but I certainly know my business. Thanks, Chris |
![]() |
| Thread Tools | |
| Display Modes | |
| |