Question

Topic: Database Design What are some concerns about using a date (or date time) as a...

Topic: Database Design

What are some concerns about using a date (or date time) as a primary key?

0 0
Add a comment Improve this question Transcribed image text
Answer #1
  • First, let's assume that we are using the georgian calendar. As you may know, this calender waas adopted to replace the jukian calendar in most western countries, but they did not all do it on the same day. The change has taken hundred of yearsbetween 1582 and the twentieth century, and during that time, what was May 13th for one person was May 24th for someone else.
  • So the second assumption is that we are going to store dates in our databases only from the current era. This is because dateis any of those earlier years is not enough to pin down exactly what day it was, more information would be needed, whether it is georgian or julian calendar date.
  • You see that is the purpose of primary key: to give identify to a real world entity. what we are identifying when we use a date is a particular day.
  • Primary key should be

1. it is never null
2.it uniquely identifies each row in the table

  • So on the basis of this date makes an excellent primary key. But it is never easy to keep date as a primary key because when we use this primary key as a foreign key in another table then it is difficult to handle. Also the there cannot be auto-increment in the date so we have to keep it unique manually which is difficult. so these are some concerns of date as a primary key.
Add a comment
Know the answer?
Add Answer to:
Topic: Database Design What are some concerns about using a date (or date time) as a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Database design Part One (Conceptual Database Design) As a database developer, you have been asked to...

    Database design Part One (Conceptual Database Design) As a database developer, you have been asked to design a new database the operation of the new project within the Liverpool John Moores University (LJMU). LJMU i planning to deliver a number of professional training courses in Al. Each course is delivered by one member of staff at LJMU's Training Centre; each staff is allocated a staff number. The policy of LJMU is to record the start working date of each staff,...

  • Using draw.io diagram tool, design a database schema for an application that tracks and manages students’...

    Using draw.io diagram tool, design a database schema for an application that tracks and manages students’ applications for a university. You have complete freedom in how you want to design your database, but you need to justify your decisions. Make sure to create proper primary/foreign key relationships between your tables. All entities and attributes must be named using the underscore convention.

  • SQL help: Design a database diagram for a database that stores information about the Downloads that...

    SQL help: Design a database diagram for a database that stores information about the Downloads that users make.  Each user must have an email address, first name, and last name.  Each user can have one or more downloads.  Each download must have a filename and download date/time.  Each product can be related to one or more downloads.  Each product must have a name. What are the PK and FK for this diagram Describe the reasoning...

  • QUESTION 1 What is the most common relationship within a relational database? Select the best answer...

    QUESTION 1 What is the most common relationship within a relational database? Select the best answer from the following. One-To-One relationship. o One-To-Many relationship. Many-To-Many relationship. Zero-To-Zero relationship. QUESTION 2 What is an "entity'? Select the best answer from the following. An entity, for our purposes, is the same as a table in the database. An entity represents one of the columns in an individual table. There are no entities in a relational database. Entities are only part of NoSQL...

  • Database Design and Management: The percent sign (%) and asterisk (*) symbols can be used with...

    Database Design and Management: The percent sign (%) and asterisk (*) symbols can be used with the LIKE comparison operator to create a search pattern. True or False? When translating an arc relationship to a physical design, you must turn the arc relationships into foreign keys. Assuming you are implementing an Exclusive Design, you must also create two Unique Key Constraints to ensure the Arc is implemented correctly. True or False? The explanation below is a User Defined integrity rule...

  • a. Design a simple database with at least 5 relations for such applications as “students taking...

    a. Design a simple database with at least 5 relations for such applications as “students taking courses taught by faculty in class rooms at a specific time” b. Is the relation R in 3NF? Explain your answer using functional dependencies. c. If your R above is in 3NF, create at least one table from your database that is not in 3NF. If your R is not in 3NF, decompose R into 3NF relations. In each case, you are required to...

  • Database design what benefits of using a Cartesian product?

    Database design what benefits of using a Cartesian product?

  • Written Assignment#1: Preliminary Database Design Preliminary Database Design The purpose of this project is to give...

    Written Assignment#1: Preliminary Database Design Preliminary Database Design The purpose of this project is to give you some experience in database design. We will explore both theoretical and practical aspects of the database design steps. Once you master it well, it is a simple matter of translating the theoretical concepts you developed into the terms of a concrete DBMS to implement the database. Conceptual/Logical Database Design You must choose some facet of real life that you feel needs to be...

  • Using the MySQL Workbench create a new database using your design specifications Add at least 10...

    Using the MySQL Workbench create a new database using your design specifications Add at least 10 records to your tables. Note: Certain tables may not require 10 records and that is ok as long as your main tables have 10 or more Create MySQL statements that will retrieve all records or rows from the tables in your database Create 10 MySQL statements that will retrieve specified records or rows from one table in your database Create 10 MySQL statements that...

  • Audit Coverage & Design Adequacy Answer the following concerns when performing an assurance engagement: 1. What...

    Audit Coverage & Design Adequacy Answer the following concerns when performing an assurance engagement: 1. What are the consequences of identifying too many or too few key process-level risks in performing an assurance audit? 2. What are some of the considerations when evaluating the design adequacy of controls for a business process?

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT