Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

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.

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M91411946
  • Price:- $40

Priced at Now at $40, Verified Solution

Have any Question?


Related Questions in DBMS

The system development team at the xyz company is working

The system development team at the XYZ Company is working on developing a new customer order entry system. In the process of designing the new system, the team has identified the following data entity attributes: Invento ...

We can represent a data set as a collection of object nodes

We can represent a data set as a collection of object nodes and a collection of attribute nodes, where there is a link between each object and each attribute, and where the weight of that link is the value of the object ...

Question 1 unified communications system eg email

Question: 1. Unified Communications System (e.g., email, conferencing, and messaging) - The local area network is slower than needed, especially for newer, cloud-based applications. The email system needs refurbishment a ...

Assignmenta restaurant is designing a database to keep

Assignment A restaurant is designing a database to keep track of customer services. A customer is defined as a customer ID, name, address and a telephone number. Customers are served by employees. Each employee is define ...

Questionsuppose a prolog database exists that gives

Question: Suppose a Prolog database exists that gives information about states and capital cities. Some cities are big, others small. Some states are eastern, others are western. a. Write a query to find all the small ca ...

Data model development and implementationpurpose of the

Data model development and implementation Purpose of the assessment (with ULO Mapping) The purpose of this assignment is to develop data models and map Database System into a standard development environment to gain unde ...

Students will select a situation or problem from their

Students will select a situation or problem from their company as a course project that can be solved using a database system. Using MS Access, or MS SQL Server Express, students will create a relational database model o ...

Question talk about the importance of pulling data from

Question : Talk about the importance of pulling data from worksheets into a single sheet also the ways excel could be a solution to a complex challenge. The response must be typed, single spaced, must be in times new rom ...

Objectivethe objective of this lab is to be familiar with a

OBJECTIVE: The objective of this lab is to be familiar with a process in big data modeling. You're required to produce three big data models using the MS PowerPoint software. This tool is available on UMUC Virtual Deskto ...

Question sql injection is in the top 10 owasp and common

Question : SQL Injection is in the top 10 OWASP and Common Weakness Enumeration. Using MySQL and PHP, show your own very short and simple application that is vulnerable to this attack. Provide another version that mitiga ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As