Question

In: Computer Science

explain why using email address as the primary key for Staff is a bad idea

explain why using email address as the primary key for Staff is a bad idea

Solutions

Expert Solution

There are multiple reasons why the e-mail addresses being primary keys are a bad idea. I'm listing some below:

  1. Primary keys are supposed to be UNIQUE and CONSTANT. E-mail addresses are liable to change. They cannot be changed and hence, it's inconvenient. This might happen if some e-mail provider goes out of business and now you have to update all the user's e-mails and the fields associated with the primary key.
  2. It will be slower when doing joins.
  3. Any other record that has a posted foreign key will have a larger value now, taking up more disk space. (It might be a trivial issue but the record now takes longer to read.)
  4. String comparisons are generally slower than integer comparisons. It might not be an issue if you're looking up a user but it will be a problem if there are complex joins.
  5. Some businesses might share a common e-mail service and this will lead to duplicate fields. For eg., kbiswal@some_company.com might belong to both Kamal Biswal and Kritesh Biswal.

This is why an e-mail might be useful as a secondary key for a lookup but using it as a primary key will be very inconvenient in the long run.


Related Solutions

Explain the advantage of Fc fusion protein drugs. Why would it be a bad idea to...
Explain the advantage of Fc fusion protein drugs. Why would it be a bad idea to give an immunosuppressed patient a live attenuated vaccine? Why might an antibody to one serotype be ineffective against a different serotype (antigenic variation)? just short answer
Why it might be a good or bad idea for banks to hold 100% of their...
Why it might be a good or bad idea for banks to hold 100% of their deposits? What role is there for banks in a future world of cryptocurrencies like bitcoins? Read this article as a starting point, but do some research as well to find some other perspectives. Include those in your response as well. The Bitcoin News. 08/12/2019. What is the future of cryptocurrencies?
Discuss why it might be a good or bad idea for banks to hold 100% of...
Discuss why it might be a good or bad idea for banks to hold 100% of their deposits? Also discuss what role is there for banks in a future world of cryptocurrencies like bitcoins.
Why do employers hate the idea of unions organizing at the workplace? What causes a bad...
Why do employers hate the idea of unions organizing at the workplace? What causes a bad relationship between unions and an organization?
1a) i) Explain the candidate key, primary key and foreign key with suitable examples [6] ii)...
1a) i) Explain the candidate key, primary key and foreign key with suitable examples [6] ii) Draw a suitable ER diagram to show the β€œIS-A” relationship between subtype and supertype [5] iii) Briefly explain the recursive relationship with a suitable example. [2]
What is an input mask used for? What is the purpose of a primary key? Why...
What is an input mask used for? What is the purpose of a primary key? Why is redundancy of data undesirable? What is a wildcard character? How would you use it to find a record?
what are teo attributes for financial aid, would either use as primary key why or why...
what are teo attributes for financial aid, would either use as primary key why or why not two 1st part what are the two attributes for financial aid? 2nd whould either of them use a primary key why or why not? Based on your knowledge/experience with a College application, Financial aid application, or your College Transcript, what two ATTRIBUTES/FIELDS do you think might be stored in a Student Database? Would either of your attributes be able to serve as a...
Using other credible websites, determine the impacts of COVID-19 on the economy. Address the following key...
Using other credible websites, determine the impacts of COVID-19 on the economy. Address the following key points - impact on the following: Aggregate Demand Curve Aggregate Supply Curve Fiscal Policy Response Monetary Policy Response Key Industry Impacts – Airlines, Cruise Lines, Hospitality (Restaurants/Hotels/Motels), Theme Parks, Sports, and Meat Production Post two paragraphs with at least one credible source (citation) regarding the impact on these key industries.
Using other credible websites, determine the impacts of COVID-19 on the economy. Address the following key...
Using other credible websites, determine the impacts of COVID-19 on the economy. Address the following key points - impact on the following: Aggregate Demand Curve Aggregate Supply Curve Fiscal Policy Response Monetary Policy Response Key Industry Impacts – Airlines, Cruise Lines, Hospitality (Restaurants/Hotels/Motels), Theme Parks, Sports, and Meat Production Post two paragraphs with at least one credible source (citation) regarding the impact on these key industries.
Explain key reasons why using sandwich structures are beneficial compared with the corresponding homogeneous structures. Give...
Explain key reasons why using sandwich structures are beneficial compared with the corresponding homogeneous structures. Give THREE applications of sandwich structures.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT