Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab: Structured Query Language (SQL) Queries with Data Manipulation Language (DML) Assignment Instructions LAB: STRUCTURED QUERY LANGUAGE (SQL) QUERIES WITH DATA MANIPULATION LANGUAGE (DML) ASSIGNMENT


 Lab: Structured Query Language (SQL) Queries with Data Manipulation Language (DML) Assignment Instructions

20e6111922eaf391425f26ab0893d549-0.jpg


20e6111922eaf391425f26ab0893d549-1.jpg


20e6111922eaf391425f26ab0893d549-2.jpg


20e6111922eaf391425f26ab0893d549-3.jpg


20e6111922eaf391425f26ab0893d549-4.jpg 

LAB: STRUCTURED QUERY LANGUAGE (SQL) QUERIES WITH DATA MANIPULATION LANGUAGE (DML) ASSIGNMENT INSTRUCTIONS CSIS 325 INSTRUCTIONS Before beginning this lab, run the following script in the SQL Server query window. If you have already created a database called hourglass, be sure to drop the database before running these queries. create database hourglass go use hourglass go CREATE TABLE Regions (RegionID int not null, RegionName varchar(40), CONSTRAINT PK_Regions PRIMARY KEY (RegionID)); CREATE TABLE Countries (Country ID int not null, CountryName varchar(50), RegionID int not null, CONSTRAINT PK_Countries PRIMARY KEY (CountryID), CONSTRAINT FK_Countries Regions FOREIGN KEY (Region ID) References Regions); CREATE TABLE Offices (OfficeID int, Office Name varchar(50), CountryID int not null, CONSTRAINT pk_Offices PRIMARY KEY (OfficeID), CONSTRAINT fk_Offices_Countries FOREIGN KEY (CountryID) REFERENCES Countries) CREATE TABLE Employees (EmpID int, FirstName varchar(30), LastName varchar(50), Email varchar(50), Salary decimal (10, 2), Office ID int not null, Supervisor ID int, CONSTRAINT pk_Employees PRIMARY KEY (EmpID), CONSTRAINT fk_Employees_Offices FOREIGN KEY (OfficeID) REFERENCES Offices, CONSTRAINT fk_Employees_Employees FOREIGN KEY (SupervisorID) REFERENCES Employees) CREATE TABLE Clients (ClientID int, LegalName varchar(100), Client Name varchar(50), CountryID int not null, Page 1 of 5

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Accounting Information Systems

Authors: Vernon Richardson, Chengyee Chang

1st edition

78025494, 978-0078025495

More Books

Students also viewed these Databases questions

Question

What are the benefits of using positive self-talk? (p. 151)

Answered: 1 week ago

Question

please help a. Total coinein-sh ctat a. Total coinein-sh ctat

Answered: 1 week ago

Question

a sin(2x) x Let f(x)=2x+1 In(be)

Answered: 1 week ago

Question

Are there differences among hubs, switches, and routers?

Answered: 1 week ago