Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The ER Model for Arkansas, Inc. database is based on the following business rules. - A department hires many employees. Each employee is hired by

The ER Model for Arkansas, Inc. database is based on the following business rules. - A department hires many employees. Each employee is hired by one department. - An employee is assigned to more than one project. Each project is assigned many employees. - Each project’s budget cannot be greater than $1 million. - A project’s end date cannot be earlier than its start date. - Each employee cannot be assigned more than 20 hours to a project. 

  • Requirements.

  • 1) Based on the ER Model, write SQL DD (Data Definition) statements to create all the tables for the Arkansas, Inc. database. We discussed SQL DD last week. (8 points). • First, you’ll need to do relational modeling. In other words, you need to map the ER model to the relational model (i.e., table structure with PK and FK) • For each column, use the data type and length that you think appropriate. • Implement all necessary data integrity rules (e.g., entity integrity constraint, key constraint, referential integrity constraint, and semantic integrity constraints). • If necessary, make explicit assumptions. 

  • 2) Write SQL DD (Data Definition) statements to change the Salary column in the Employee table to EmpSalary. (1 point) 

  • 3) Write SQL statements to add a new column, named Zipcode (data type: VARCHAR, length: 10) to the Employee table. (1 point) 

  • 4) For this assignment, we are not actually creating the database in MS SQL Server. Just write the SQL statements to create the tables in Word and submit it via the submission link for grading.

Step by Step Solution

3.48 Rating (168 Votes )

There are 3 Steps involved in it

Step: 1

Here are the SQL DD statements to create all the tables for the Arkansas Inc database SQL Create the Department table CREATE TABLE Department Departme... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation and Management

Authors: Carlos Coronel, Steven Morris

13th edition

1337627909, 978-1337627900

More Books

Students also viewed these Programming questions

Question

What is a recursive relationship? Given an example.

Answered: 1 week ago