Create a database diagram of the final database

Assignment Help Database Management System
Reference no: EM13842138

1: Write a script to create an EMPLOYEES table in the AdventureWorksLT database using the following specifications:

Column Name

Datatype

Primary Key (Y/N)

Nullable (Y/N)

EmployeeID

Integer

Y

N

Hire Date

datetime

N

Y

LastName

Character (20)

N

N

FirstName

Character (10)

N

N

PostalCode

Character (10)

N

Y

Region

Character (15)

N

Y

Title

Character (30)

N

Y

County

Character (20)

N

Y

2: Write a script to create a REGIONS table in the AdventureWorksLT database using the following specifications:

Column Name

Datatype

Primary Key (Y/N)

Nullable (Y/N)

RegionID

Integer

Y

N

RegionDescription

Character (50)

N

N

3: Write a script to create a DEPARTMENTS table in the AdventureWorks database using the following specifications:

Column Name

Datatype

Primary Key (Y/N)

Nullable (Y/N)

DepartmentID

Integer

Y

N

DepartmentDescription

Character (50)

N

N

4: Write a script to add the following records to the EMPLOYEES table:

1 6/7/1998 Sellers Andrew 12345 IL Administrator Cook
2 3/15/1987 Jones Jim 40677 IL CEO Dupage
3 4/5/2000 Johnson Jennifer 89036 CA Manager Kings
4 11/19/2000 Lark Ron 23435 NY Manager Queens
5 4/6/2008 Buchanan Steven 74536 VA Administrator Richmond

5: Write a script to add the following records to the REGIONS table:

1

Eastern

2

Western

3

Northern

4

Southern

6: Write a script to add the following records to the DEPARTMENTS table:

10

CEO

20

Sales

30

Marketing

7: Write a script to add the following column to the EMPLOYEES table:

Column Name

Datatype

Primary Key (Y/N)

Nullable (Y/N)

DepartmentID

Integer

N

N

8: Write a script to establish a foreign key constraint between EMPLOYEES and DEPARTMENTS using the common field: DepartmentID;

9: Create a database diagram of the final database clearly depicting all tables and relationships.

Submit the SQL, DDL, and DML scripts needed to complete tasks and the database diagram of the final database.

Reference no: EM13842138

Questions Cloud

Write method that checks whether string is a valid password : Write a program that prompts the user to enter a password and displays Valid Password if the rules are followed or Invalid Password otherwise to verify a password according to as set of rules stated in the problem statement
Foundational element for sound decision making in business : Is Focusing on the process not individual functional area is a foundational element for sound decision making in business to increase the probability for positive business outcomes. discuss that ?
Measuring non financial performance : Research Six Sigma, Balanced Scorecard, and Triple Bottom Line. (A Google search with ethics AND the chosen model works well.) Which do you think would be most helpful in measuring nonfinancial performance? Why?
Design a java application that will read a file containing : Design a Java application that will read a file containing data
Create a database diagram of the final database : Write a script to establish a foreign key constraint between EMPLOYEES and DEPARTMENTS using the common field: DepartmentID. Create a database diagram of the final database clearly depicting all tables and relationships.
Create an eight-page book report : This assignment requires the student to read a book by one of the following personality psychologists (Freud, Erikson, Fromm, Jung, Rogers, or Skinner) and create an eight-page book report (about 2,000 words)
Describe the strategy of ford-using the strategy model : Describe the strategy of Ford, using the strategy model in Figure 1.4: Describing Dyson's strategy, on page 20 of Foundations in Strategy, as a guide to frame the strategy description from the following two perspectives:
Display all employees names last name first : Display all employees' names, last name first, and then first name, and hire date. Order the results by employee name, last name first, and then first name.
Collaborated to write uniform criminal code : A group of attorneys, judges and law professionals have collaborated to write a uniform criminal code. The code would create uniformity in criminal law across the United States, defining what constitutes a misdemeanour, what constitutes a felony, how..

Reviews

Write a Review

Database Management System Questions & Answers

  Create oracle database tables

Create Oracle database tables using SQL Data Definition Language (DDL) for each table listed in Project 1. Make sure that entity and referential integrity are enforced by declaring a primary key for each table (these may be composite keys) and dec..

  1 design an relational model rm model of a database db that

1. design an relational model rm model of a database db that will be useful for each of the chosen enterprises. hint

  How to connect to the oracle database

Instructions: You can use any source you prefer, the text, Internet, etc. The answers should not take more than 1 - 2 paragraphs of text, please submit a word processing document, please make sure it's compatible with MS Word.

  Systems administrator for your school

Using the Web, identify the chief information officer, chief information security officer, and systems administrator for your school. Which of these individuals represents the data owner? Data custodian

  Find all of the strong association rules

Find all of the strong association rules. Provide support, c onfidence, and lift for all the rule. Provide the reasons why the rules you selected are interesting.

  Assume that a student table in a university

Assume that a student table in a university database has an index on StudentID (the primary key). and additional indexes on Major, Age, Marital status, and HomeZipCode.

  Explain what information is available in relational database

Explain what information is available from relational database containing one relation with attributes Name, Employee identification number, and Address which is not available.

  Design er schema to keep track of information of votes

Design an er schema for keeping track of information about votes taken in the U.S. House of Representatives during the current two year congressional session.

  Display the results in descending order by the gross sales

Display all the columns from the Orders table that were paid with a Visa Card and have been shipped to the customer (hint: not a null). Order results by the Item Price in descending order.

  By using the instructions given by your instructor install

using the instructions provided by your instructor install mysql and connect from netbeans. create a user account that

  Description of the relationship represented by scatterplot

Produce a scatterplot of Rent vs. Size (square meters of the apartment) for the rental data in rent.

  Programming with sql using number and date fun

Programming with SQL Objectives: Using Character, Number and Date Functions. • Create and execute single-row functions that perform case conversion and/or character manipulation. • Create and execute single-row number functions ROUND and TRUNC. •..

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