How might you check to ensure dates are entered correctly

Assignment Help Database Management System
Reference no: EM13945269

What you see below is an Entity Relationship Diagram, or ERD, of a very small Human Resources (HR) database schema. The 7 tables you see represent entities that have various relations with one another.

The bolded text is the name of the entity (table), while the purple text represents the primary key. You will notice that most of the entries in purple text end in _id with one exception in the JOB_HISTORY table.

I would like you to take this HR schema and create a database in MySQL from it using appropriate data types, appropriate database engine, setting up primary and foreign keys (remember, foreign keys require a certain MySQL database engine), etc. Call your database HR, just as you see below.

As you can see in this sample schema, each block represents an entity or table as we call it, once it reaches our database. The black BOLDED text represents the name of the table. The entries under the name represent the various fields (columns), while the purple entries represent primary keys. Some of the tables have a single relationship with another table, while others have relationships with multiple tables.

You'll also notice that there are a number of column names that end in "_id", but are not the purple colored primary keys for the table. If you look, almost every one of these point to a primary key in another table, making them foreign keys. You'll also notice a particularly strange relationship that has the EMPLOYEES table relating back to itself.

Questions to Answer

1) There are actually three types of keys in the JOB_HISTORY table. What are those three types of keys? Remember that some keys can actually be of more than one type.

3) You'll notice a strange relationship that the EMPLOYEES table has back to itself. This is known as a recursive relationship. Looking at the fields in EMPLOYEES, why would this table have a relationship back to itself?

5) This version of MySQL doesn't implement check constraints. With that in mind, how might you check to ensure dates are entered correctly? For example, that the start_date is prior to the end_date in the JOB_HISTORY table?

Reference no: EM13945269

Questions Cloud

Introduces online presence for business : Module 4 introduces online presence for business and information security policies. E-commerce can result in a radical change in the manner business operate, but it needs to be integrated with the rest of the business. Some of the integration include..
The car move while accelerating : A car enters the freeway with a speed of 40km/h and accelerates to a speed of 92km/h in 3.5 minutes. How far does the car move while accelerating?
Mutual fund with an expected return : You own a mutual fund with an expected return of 10% per year and a standard deviation of returns of 12% per year. You are considering adding another stock to your portfolio. The new stock has an expected return of 10% per year and a standard deviati..
What were the chalcedonian doctrine and its alternatives : What was the major question addressed by the Council of Nicea and what were the Nicene doctrine and its alternatives ? What was the major question addressed by the Council of Chalcedon,and what were the Chalcedonian doctrine and its alternatives? ..
How might you check to ensure dates are entered correctly : This version of MySQL doesn't implement check constraints. With that in mind, how might you check to ensure dates are entered correctly?
Elements of the employee value proposition : Why is it important to understand thoroughly the various elements of the employee value proposition (EVP)? - Why would a company want to know what are the most important aspects of EVP for their employees?
Arranged in close proximity to one another : Two coils are arranged in close proximity to one another. The first coil is connected to a Duracell battery. Explain what, if any, effect this has on the second coil. Use an electromagnetism principle to justify your answer.
Write paper on people group history and cultural background : My thesis statement is: Despite the widespread acceptance of Christianity, the unreached people the Swahili of Uganda are still less than 2% evangelical and are in need of being reached with the gospel.
Honda uses collaboration s/w to speed product development : Why did Honda resort to a software package to support this critical business process rather than develop a custom application to meet its needs

Reviews

Write a Review

Database Management System Questions & Answers

  Build a database named dbms course project

Build a Database named DBMS Course Project. The database should include following tables.

  Use javascript to ensure that an entry has been made

When the database is set up it should be populated with the data that you have chosen. Display this data as part of your documentation. Each table should have from 3 to 6 records initially.

  Need a three-level schema architecture

Need a three-level schema architecture for the Company that provide better security also design a data abstraction

  Business development activity cost pool

How much cost, in total, would be allocated to the Working On Engagements activity cost pool and how much cost, in total, would be allocated to the Business Development activity cost pool?

  Why an organization may have a need for distributed database

A few years have passed, and the restaurant has grown to become a national restaurant chain. Now, they are concerned that remote and branch offices and restaurants in all fifty states will not have ready access to the data.

  Create a database for use by the employees

The vegetable database: You have to create a database for use by the employees of vegetables.com, an online store which sells many different vegetables, including onions, tomatoes, carrots, potatoes, squash, eggplants and zuchini

  Create data warehouse sections including computers-dvds

Create a data warehouse for electronics store chain. The chain has 20 stores in 5 cities. Each store has different sections including computers, DVDs, TVs, audio, home appliances etc.

  Questioncandywarehouse is an online candy store the store

questioncandywarehouse is an online candy store. the store purchases candies from various vendors and one of them is

  Create a student database in ruby

To create a student database in Ruby that allows for, updating a record within the database

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Coastal seafoodcoastal seafood is a family-owned business

coastal seafoodcoastal seafood is a family-owned business that operates on the east coast. the company already uses

  Construct an e-r diagram for the database

Consider a database used to record the marks that students get on different examinations of different course offerings. Construct an E-R diagram for the database that models exams as entities, and uses a ternary relationship

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd