surrogate-key Questions

7

Solved

I was wondering what the best practices were for building and storing IDs. A few years ago, a professor told me about the dangers of a poorly constructed ID system, using the Social Security ...
Chromoprotein asked 3/12, 2010 at 22:21

4

I want to understand how surrogate keys are leveraged in real-time DWH environments. I get that they add the benefit of not being dependent on source-generated data to store each dimension key and ...
Diandiana asked 29/4, 2017 at 13:36

10

Solved

Which one is the best practice and Why? a) Type Table, Surrogate/Artificial Key Foreign key is from user.type to type.id: b) Type Table, Natural Key Foreign key is from user.type to type.typeN...
Richelle asked 19/9, 2010 at 22:27

1

Solved

My problem is about nature key and auto_increment integer as primary key. For example, I have tables A and B and A_B_relation. A and B may be some object, and A_B_realtion record the many to many ...
Hanyang asked 10/10, 2015 at 11:12

4

Solved

It is better to use primary key when design tables. But when designing a primary key, is it needed to set auto_increment? What's the benefit? I heard that can keep b-trees stable, but why? If table...

6

Solved

Structure: Actor <=== ActorMovie ===> Movie ActorMovie: ActorID (fk), MovieId (fk)... ===> pk: (ActorID, MovieID) Should do I create a surrogate key for ActorMovie table like this? Ac...
Production asked 25/11, 2013 at 10:11

3

Solved

I realise there might be similar questions but I couldn't find one that was close enough for guidance. Given this spec, Site --------------------------- SiteID int identity Name varchar(50) Seri...

3

Solved

I am trying to design an ecommerce web application in MySQL and I am having problems choosing the correct primary keys for the user table. the example given is just a sample example for illustratio...
Eternal asked 1/4, 2012 at 18:28

1

Solved

I have to modify an existing table in a Oracle 10g DB with a few thousand records to add a surrogate autonumber key. One way that comes to my mind is to Create a new sequence Create the id colum...
Suffolk asked 18/2, 2010 at 9:9
1

© 2022 - 2024 — McMap. All rights reserved.