Answered step by step
Verified Expert Solution
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...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started