Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Database Administration CSCI 3 4 2 Lab Project Lab 1 Q 1 . Create a database with the following Design Specifications Database Name: Company _

Database Administration
CSCI 342
Lab Project Lab 1
Q1. Create a database with the following Design Specifications
Database Name: Company_DENORMALIZED
Q2. Create a table in the same database you created above with the following design specifications.
Table Name: SalesOrder
\table[[Column Name,SalesOrderNo,Date,CustomerNo,CustomerName,CustomerAdd,ClearkNo,ItemNo,Description,Qty,UnitPrice],[Data Type,INT,DATE,INT,VARCHAR(30),VARCHAR(100),INT,INT,TEXT,INT,Money],[Null Constraint,NOT NULL,NULL,NOT NULL,NULL,NULL,NULL,\table[[NOT],[NOT NULL]],NULL,NULL,NULL]]
Q3. Load the following data into the table created above (use INSERT Statement)
\table[[SalesOrderNo,Date,CustomerNo,CustomerName,CustomerAdd,ClearkNo,ItemNo,Description,Qty,UnitPrice],[43661,71?2005,13531,Jon,MD,21542,712,Fruit,4,5.1865],[43661,71?2005,13531,Jon,MD,21542,743,Liquor,2,714.7043],[43661,71?2005,13531,Jon,MD,21542,747,Vegetable,1,714.7043],[43662,72?2005,11358,Christy,VA,2654,712,Fruit,10,5.1865],[43662,72?2005,11358,Christy,VA,2654,715,Bakery,3,28.8404],[43662,72?2005,11358,Christy,VA,2654,742,Electronics,1,722.5949],[43663,72?2005,6229,Janet,DC,21145,775,Electronics,7,2024.994],[43663,72?2005,6229,Janet,DC,21113,778,Electronics,1,2024.994],[43663,72?2005,6229,Janet,DC,21113,712,Fruit,1,5.1865],[43663,72?2005,6229,Janet,DC,21113,741,Furniture,2,818.7],[43664,72?2005,6377,Jacquelyn,MD,2978,776,Furniture,2,2024.994]]
Q4. Retrieve the SalesOrderNo, CustomerName, Description, and Qty for all sales
Q5. Retrieve the SalesOrderNo, CustomerName, Description, and Qty for CustomerNo 6229
(Use the WHERE Clause to filter CustomerNo 6229)
image text in transcribed

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

Concepts Of Database Management

Authors: Joy L. Starks, Philip J. Pratt, Mary Z. Last

9th Edition

1337093424, 978-1337093422

More Books

Students also viewed these Databases questions

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago