SlideShare a Scribd company logo
1 of 2
Download to read offline
Trent Hardware Database Tables/Fields Refer to the table and field names below for this
database.
1. (15 pts) At Trent Hardware, customers are called buyers. Write a SQL query that lists the top
10 buyers who have spent the most money at Trent Hardware and how much they have spent.
Group the purchases by buyer. Include in the list the buyer's first and last name and the total
dollar amount of the purchases. Order the list from highest amount of total purchases to the
lowest, but limit the list to the top 10 buyers. Code: Results: 2. (15 pts) Write a SQL query to list
the product description and total quantity sold for each product with at least 100 units sold.
(Hint: SQL does not permit the filtering of aggregates using the WHERE keyword. WHERE
filters records before aggregation. HAVING can be used to filter records after aggregation.) List
the product description and total quantity sold (all-time) as "Total#Sold". (See example output
below.) Sort the list in descending order, thereby showing which product had the highest quantity
sales first. Remove decimals from the "Total#Sold" by looking up CAST keyword in the
Microsoft SQL Server 2016 online reference and using it in your query. Code: Results:
Section 2: Normalization & Conceptual Design Part 1 - (30 pts) Decompose an un-normalized
table. Normalize the table below to Boyce-Codd Normal Form the table below. To communicate
your normalized tables/entities, use "sentence structure" (aka, relational notation) similar to the
following: PRODUCT(ProductID, ProductName, etc.) or TITLE (Title id, Title, Pub id).
Underline your indentifier/primary key. (No need to identify foreign keys at this point.) List your
tables in sentence structure here:
Normalization & Conceptual Design (Continued) Part 2 - (30 pts) Using Visio or LucidChart
and following business rules, create an Entity-Relationship diagram of the tables/entities you
listed above. Business Rules: - An employee can participate in many projects but may not be
assigned to a project. - A project must have at least one employee assigned to it and can have
many employees. - An employee can belong to one and only one department. - A department
must have at least one employee and can have many. NOTE: The diagram must include
relationships with minimum and maximum cardinality. Be sure to use the appropriate
relationship lines (identifying or non-identifying) and appropriate corners (rounded or not) for
entites. Identifiers should be in bold font. Copy and Paste your entity-relationship diagram
below:
Part 3 - (10 pts) Using the tables/entities you created and refering to your diagram, type a SQL
statement below (not using SQL Server) that would return a list of employee name and their
corresponding project name. Be sure to use proper form. Since the tables/entities vou created
have not been developed into a database vet, there will be no output to your code at this time.
Type your SQL Statement below to list the name of the employee and the project they are
working on. SQL Statement:

More Related Content

Similar to Trent Hardware Database TablesFields Refer to the table and field .pdf

on SQL Managment studio(For the following exercise, use the Week 5.pdf
on SQL Managment studio(For the following exercise, use the Week 5.pdfon SQL Managment studio(For the following exercise, use the Week 5.pdf
on SQL Managment studio(For the following exercise, use the Week 5.pdfformaxekochi
 
Cover PageComplete and copy the following to Word for your cover p.docx
Cover PageComplete and copy the following to Word for your cover p.docxCover PageComplete and copy the following to Word for your cover p.docx
Cover PageComplete and copy the following to Word for your cover p.docxfaithxdunce63732
 
Page 5 of 7Delete this text and type your name hereThis fi.docx
Page 5 of 7Delete this text and type your name hereThis fi.docxPage 5 of 7Delete this text and type your name hereThis fi.docx
Page 5 of 7Delete this text and type your name hereThis fi.docxalfred4lewis58146
 
Business Intelligence Portfolio
Business Intelligence PortfolioBusiness Intelligence Portfolio
Business Intelligence PortfolioChris Seebacher
 
SQL practice questions set - 2
SQL practice questions set - 2SQL practice questions set - 2
SQL practice questions set - 2Mohd Tousif
 
Part 2Supplier Database (MS Access)As you recall, data is a.docx
Part 2Supplier Database (MS Access)As you recall, data is a.docxPart 2Supplier Database (MS Access)As you recall, data is a.docx
Part 2Supplier Database (MS Access)As you recall, data is a.docxodiliagilby
 
SQL - Structured query language introduction
SQL - Structured query language introductionSQL - Structured query language introduction
SQL - Structured query language introductionSmriti Jain
 
Case Study Part 2 - Provider Database (Access) AssignmentsPart.docx
Case Study Part 2 - Provider Database (Access) AssignmentsPart.docxCase Study Part 2 - Provider Database (Access) AssignmentsPart.docx
Case Study Part 2 - Provider Database (Access) AssignmentsPart.docxmichelljubborjudd
 
Part 2Provider Database (Open Office Database)Use the project des.docx
Part 2Provider Database (Open Office Database)Use the project des.docxPart 2Provider Database (Open Office Database)Use the project des.docx
Part 2Provider Database (Open Office Database)Use the project des.docxdanhaley45372
 
Part 2Provider Database (MS Access)Use the project descriptio.docx
Part 2Provider Database (MS Access)Use the project descriptio.docxPart 2Provider Database (MS Access)Use the project descriptio.docx
Part 2Provider Database (MS Access)Use the project descriptio.docxdunnramage
 
04 quiz 1 answer key
04 quiz 1 answer key04 quiz 1 answer key
04 quiz 1 answer keyAnne Lee
 
SQL Practice Question set
SQL Practice Question set SQL Practice Question set
SQL Practice Question set Mohd Tousif
 
acct accounting Table Lab.pdf
acct accounting Table Lab.pdfacct accounting Table Lab.pdf
acct accounting Table Lab.pdfbkbk37
 
CS1100 Access Lab 1 Creating and Querying Database.docx
CS1100 Access Lab 1  Creating and Querying Database.docxCS1100 Access Lab 1  Creating and Querying Database.docx
CS1100 Access Lab 1 Creating and Querying Database.docxfaithxdunce63732
 
SQL Server 2008 Portfolio
SQL Server 2008 PortfolioSQL Server 2008 Portfolio
SQL Server 2008 Portfoliolilredlokita
 
Coit11237 assignment 2 specifications
Coit11237 assignment 2 specificationsCoit11237 assignment 2 specifications
Coit11237 assignment 2 specificationsNicole Valerio
 

Similar to Trent Hardware Database TablesFields Refer to the table and field .pdf (18)

on SQL Managment studio(For the following exercise, use the Week 5.pdf
on SQL Managment studio(For the following exercise, use the Week 5.pdfon SQL Managment studio(For the following exercise, use the Week 5.pdf
on SQL Managment studio(For the following exercise, use the Week 5.pdf
 
Cover PageComplete and copy the following to Word for your cover p.docx
Cover PageComplete and copy the following to Word for your cover p.docxCover PageComplete and copy the following to Word for your cover p.docx
Cover PageComplete and copy the following to Word for your cover p.docx
 
Page 5 of 7Delete this text and type your name hereThis fi.docx
Page 5 of 7Delete this text and type your name hereThis fi.docxPage 5 of 7Delete this text and type your name hereThis fi.docx
Page 5 of 7Delete this text and type your name hereThis fi.docx
 
Business Intelligence Portfolio
Business Intelligence PortfolioBusiness Intelligence Portfolio
Business Intelligence Portfolio
 
Oracle General Ledger GL FSG
Oracle General Ledger GL FSG Oracle General Ledger GL FSG
Oracle General Ledger GL FSG
 
SQL practice questions set - 2
SQL practice questions set - 2SQL practice questions set - 2
SQL practice questions set - 2
 
Part 2Supplier Database (MS Access)As you recall, data is a.docx
Part 2Supplier Database (MS Access)As you recall, data is a.docxPart 2Supplier Database (MS Access)As you recall, data is a.docx
Part 2Supplier Database (MS Access)As you recall, data is a.docx
 
SQL - Structured query language introduction
SQL - Structured query language introductionSQL - Structured query language introduction
SQL - Structured query language introduction
 
Creating modeled views
Creating modeled viewsCreating modeled views
Creating modeled views
 
Case Study Part 2 - Provider Database (Access) AssignmentsPart.docx
Case Study Part 2 - Provider Database (Access) AssignmentsPart.docxCase Study Part 2 - Provider Database (Access) AssignmentsPart.docx
Case Study Part 2 - Provider Database (Access) AssignmentsPart.docx
 
Part 2Provider Database (Open Office Database)Use the project des.docx
Part 2Provider Database (Open Office Database)Use the project des.docxPart 2Provider Database (Open Office Database)Use the project des.docx
Part 2Provider Database (Open Office Database)Use the project des.docx
 
Part 2Provider Database (MS Access)Use the project descriptio.docx
Part 2Provider Database (MS Access)Use the project descriptio.docxPart 2Provider Database (MS Access)Use the project descriptio.docx
Part 2Provider Database (MS Access)Use the project descriptio.docx
 
04 quiz 1 answer key
04 quiz 1 answer key04 quiz 1 answer key
04 quiz 1 answer key
 
SQL Practice Question set
SQL Practice Question set SQL Practice Question set
SQL Practice Question set
 
acct accounting Table Lab.pdf
acct accounting Table Lab.pdfacct accounting Table Lab.pdf
acct accounting Table Lab.pdf
 
CS1100 Access Lab 1 Creating and Querying Database.docx
CS1100 Access Lab 1  Creating and Querying Database.docxCS1100 Access Lab 1  Creating and Querying Database.docx
CS1100 Access Lab 1 Creating and Querying Database.docx
 
SQL Server 2008 Portfolio
SQL Server 2008 PortfolioSQL Server 2008 Portfolio
SQL Server 2008 Portfolio
 
Coit11237 assignment 2 specifications
Coit11237 assignment 2 specificationsCoit11237 assignment 2 specifications
Coit11237 assignment 2 specifications
 

More from allinoneenterprise1

The table here, , shows the one-year return distribution of Startup I.pdf
 The table here, , shows the one-year return distribution of Startup I.pdf The table here, , shows the one-year return distribution of Startup I.pdf
The table here, , shows the one-year return distribution of Startup I.pdfallinoneenterprise1
 
The table below pertains to Pieway, an economy in which the typical c.pdf
 The table below pertains to Pieway, an economy in which the typical c.pdf The table below pertains to Pieway, an economy in which the typical c.pdf
The table below pertains to Pieway, an economy in which the typical c.pdfallinoneenterprise1
 
The switch receives an average of 3.9 calls per minute in the afterno.pdf
 The switch receives an average of 3.9 calls per minute in the afterno.pdf The switch receives an average of 3.9 calls per minute in the afterno.pdf
The switch receives an average of 3.9 calls per minute in the afterno.pdfallinoneenterprise1
 
The stockholders equity section of Blue Spruce Corp. consists of com.pdf
 The stockholders equity section of Blue Spruce Corp. consists of com.pdf The stockholders equity section of Blue Spruce Corp. consists of com.pdf
The stockholders equity section of Blue Spruce Corp. consists of com.pdfallinoneenterprise1
 
Use su folleto de lectura para calcular todas las partes necesari.pdf
 Use su folleto de lectura para calcular todas las partes necesari.pdf Use su folleto de lectura para calcular todas las partes necesari.pdf
Use su folleto de lectura para calcular todas las partes necesari.pdfallinoneenterprise1
 
Unlimited Attempts Allowed Available Mar 20, 2023 1200am until Apr .pdf
 Unlimited Attempts Allowed Available Mar 20, 2023 1200am until Apr .pdf Unlimited Attempts Allowed Available Mar 20, 2023 1200am until Apr .pdf
Unlimited Attempts Allowed Available Mar 20, 2023 1200am until Apr .pdfallinoneenterprise1
 
Unit 3.1 DB Is there a difference between a private attorney and a p.pdf
 Unit 3.1 DB Is there a difference between a private attorney and a p.pdf Unit 3.1 DB Is there a difference between a private attorney and a p.pdf
Unit 3.1 DB Is there a difference between a private attorney and a p.pdfallinoneenterprise1
 
Understand acids, bases, and the pH scale Understand the role of wate.pdf
 Understand acids, bases, and the pH scale Understand the role of wate.pdf Understand acids, bases, and the pH scale Understand the role of wate.pdf
Understand acids, bases, and the pH scale Understand the role of wate.pdfallinoneenterprise1
 
Understanding regional tectonics using beach balls Part I Remember b.pdf
 Understanding regional tectonics using beach balls Part I Remember b.pdf Understanding regional tectonics using beach balls Part I Remember b.pdf
Understanding regional tectonics using beach balls Part I Remember b.pdfallinoneenterprise1
 
Understanding whether a glacier is growing, shrinking, or staying the.pdf
 Understanding whether a glacier is growing, shrinking, or staying the.pdf Understanding whether a glacier is growing, shrinking, or staying the.pdf
Understanding whether a glacier is growing, shrinking, or staying the.pdfallinoneenterprise1
 
Tuberculosis is caused by the organism Mycobacterium tuberculosis Def.pdf
 Tuberculosis is caused by the organism Mycobacterium tuberculosis Def.pdf Tuberculosis is caused by the organism Mycobacterium tuberculosis Def.pdf
Tuberculosis is caused by the organism Mycobacterium tuberculosis Def.pdfallinoneenterprise1
 
Treat the number of months X after January 1 that someone is born as .pdf
 Treat the number of months X after January 1 that someone is born as .pdf Treat the number of months X after January 1 that someone is born as .pdf
Treat the number of months X after January 1 that someone is born as .pdfallinoneenterprise1
 
True or false If all firms in an industry have identical variable.pdf
 True or false If all firms in an industry have identical variable.pdf True or false If all firms in an industry have identical variable.pdf
True or false If all firms in an industry have identical variable.pdfallinoneenterprise1
 
Three of the following statements about online and offline communitie.pdf
 Three of the following statements about online and offline communitie.pdf Three of the following statements about online and offline communitie.pdf
Three of the following statements about online and offline communitie.pdfallinoneenterprise1
 
Thyido ua tuam 2 Spring 2022 Narne 1. Light first enters the eye .pdf
 Thyido ua tuam 2 Spring 2022 Narne 1. Light first enters the eye .pdf Thyido ua tuam 2 Spring 2022 Narne 1. Light first enters the eye .pdf
Thyido ua tuam 2 Spring 2022 Narne 1. Light first enters the eye .pdfallinoneenterprise1
 
Topic Name three approaches to break even analysis. Explain in detai.pdf
 Topic Name three approaches to break even analysis. Explain in detai.pdf Topic Name three approaches to break even analysis. Explain in detai.pdf
Topic Name three approaches to break even analysis. Explain in detai.pdfallinoneenterprise1
 
To submit completed Homework Exercise 4 transfer all answers from thi.pdf
 To submit completed Homework Exercise 4 transfer all answers from thi.pdf To submit completed Homework Exercise 4 transfer all answers from thi.pdf
To submit completed Homework Exercise 4 transfer all answers from thi.pdfallinoneenterprise1
 
To make its 3D map of the universe, the Sloan Digital Sky Survey need.pdf
 To make its 3D map of the universe, the Sloan Digital Sky Survey need.pdf To make its 3D map of the universe, the Sloan Digital Sky Survey need.pdf
To make its 3D map of the universe, the Sloan Digital Sky Survey need.pdfallinoneenterprise1
 
The Transtheoretical Model (TTM) and The Precaution Adoption Proce.pdf
 The Transtheoretical Model (TTM) and The Precaution Adoption Proce.pdf The Transtheoretical Model (TTM) and The Precaution Adoption Proce.pdf
The Transtheoretical Model (TTM) and The Precaution Adoption Proce.pdfallinoneenterprise1
 

More from allinoneenterprise1 (20)

The table here, , shows the one-year return distribution of Startup I.pdf
 The table here, , shows the one-year return distribution of Startup I.pdf The table here, , shows the one-year return distribution of Startup I.pdf
The table here, , shows the one-year return distribution of Startup I.pdf
 
The table below pertains to Pieway, an economy in which the typical c.pdf
 The table below pertains to Pieway, an economy in which the typical c.pdf The table below pertains to Pieway, an economy in which the typical c.pdf
The table below pertains to Pieway, an economy in which the typical c.pdf
 
The switch receives an average of 3.9 calls per minute in the afterno.pdf
 The switch receives an average of 3.9 calls per minute in the afterno.pdf The switch receives an average of 3.9 calls per minute in the afterno.pdf
The switch receives an average of 3.9 calls per minute in the afterno.pdf
 
The stockholders equity section of Blue Spruce Corp. consists of com.pdf
 The stockholders equity section of Blue Spruce Corp. consists of com.pdf The stockholders equity section of Blue Spruce Corp. consists of com.pdf
The stockholders equity section of Blue Spruce Corp. consists of com.pdf
 
Use su folleto de lectura para calcular todas las partes necesari.pdf
 Use su folleto de lectura para calcular todas las partes necesari.pdf Use su folleto de lectura para calcular todas las partes necesari.pdf
Use su folleto de lectura para calcular todas las partes necesari.pdf
 
Unlimited Attempts Allowed Available Mar 20, 2023 1200am until Apr .pdf
 Unlimited Attempts Allowed Available Mar 20, 2023 1200am until Apr .pdf Unlimited Attempts Allowed Available Mar 20, 2023 1200am until Apr .pdf
Unlimited Attempts Allowed Available Mar 20, 2023 1200am until Apr .pdf
 
Unit 3.1 DB Is there a difference between a private attorney and a p.pdf
 Unit 3.1 DB Is there a difference between a private attorney and a p.pdf Unit 3.1 DB Is there a difference between a private attorney and a p.pdf
Unit 3.1 DB Is there a difference between a private attorney and a p.pdf
 
Understand acids, bases, and the pH scale Understand the role of wate.pdf
 Understand acids, bases, and the pH scale Understand the role of wate.pdf Understand acids, bases, and the pH scale Understand the role of wate.pdf
Understand acids, bases, and the pH scale Understand the role of wate.pdf
 
Understanding regional tectonics using beach balls Part I Remember b.pdf
 Understanding regional tectonics using beach balls Part I Remember b.pdf Understanding regional tectonics using beach balls Part I Remember b.pdf
Understanding regional tectonics using beach balls Part I Remember b.pdf
 
Understanding whether a glacier is growing, shrinking, or staying the.pdf
 Understanding whether a glacier is growing, shrinking, or staying the.pdf Understanding whether a glacier is growing, shrinking, or staying the.pdf
Understanding whether a glacier is growing, shrinking, or staying the.pdf
 
Tuberculosis is caused by the organism Mycobacterium tuberculosis Def.pdf
 Tuberculosis is caused by the organism Mycobacterium tuberculosis Def.pdf Tuberculosis is caused by the organism Mycobacterium tuberculosis Def.pdf
Tuberculosis is caused by the organism Mycobacterium tuberculosis Def.pdf
 
Treat the number of months X after January 1 that someone is born as .pdf
 Treat the number of months X after January 1 that someone is born as .pdf Treat the number of months X after January 1 that someone is born as .pdf
Treat the number of months X after January 1 that someone is born as .pdf
 
True or false If all firms in an industry have identical variable.pdf
 True or false If all firms in an industry have identical variable.pdf True or false If all firms in an industry have identical variable.pdf
True or false If all firms in an industry have identical variable.pdf
 
Three of the following statements about online and offline communitie.pdf
 Three of the following statements about online and offline communitie.pdf Three of the following statements about online and offline communitie.pdf
Three of the following statements about online and offline communitie.pdf
 
Thyido ua tuam 2 Spring 2022 Narne 1. Light first enters the eye .pdf
 Thyido ua tuam 2 Spring 2022 Narne 1. Light first enters the eye .pdf Thyido ua tuam 2 Spring 2022 Narne 1. Light first enters the eye .pdf
Thyido ua tuam 2 Spring 2022 Narne 1. Light first enters the eye .pdf
 
Topic Name three approaches to break even analysis. Explain in detai.pdf
 Topic Name three approaches to break even analysis. Explain in detai.pdf Topic Name three approaches to break even analysis. Explain in detai.pdf
Topic Name three approaches to break even analysis. Explain in detai.pdf
 
Tod.pdf
 Tod.pdf Tod.pdf
Tod.pdf
 
To submit completed Homework Exercise 4 transfer all answers from thi.pdf
 To submit completed Homework Exercise 4 transfer all answers from thi.pdf To submit completed Homework Exercise 4 transfer all answers from thi.pdf
To submit completed Homework Exercise 4 transfer all answers from thi.pdf
 
To make its 3D map of the universe, the Sloan Digital Sky Survey need.pdf
 To make its 3D map of the universe, the Sloan Digital Sky Survey need.pdf To make its 3D map of the universe, the Sloan Digital Sky Survey need.pdf
To make its 3D map of the universe, the Sloan Digital Sky Survey need.pdf
 
The Transtheoretical Model (TTM) and The Precaution Adoption Proce.pdf
 The Transtheoretical Model (TTM) and The Precaution Adoption Proce.pdf The Transtheoretical Model (TTM) and The Precaution Adoption Proce.pdf
The Transtheoretical Model (TTM) and The Precaution Adoption Proce.pdf
 

Recently uploaded

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 

Recently uploaded (20)

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 

Trent Hardware Database TablesFields Refer to the table and field .pdf

  • 1. Trent Hardware Database Tables/Fields Refer to the table and field names below for this database. 1. (15 pts) At Trent Hardware, customers are called buyers. Write a SQL query that lists the top 10 buyers who have spent the most money at Trent Hardware and how much they have spent. Group the purchases by buyer. Include in the list the buyer's first and last name and the total dollar amount of the purchases. Order the list from highest amount of total purchases to the lowest, but limit the list to the top 10 buyers. Code: Results: 2. (15 pts) Write a SQL query to list the product description and total quantity sold for each product with at least 100 units sold. (Hint: SQL does not permit the filtering of aggregates using the WHERE keyword. WHERE filters records before aggregation. HAVING can be used to filter records after aggregation.) List the product description and total quantity sold (all-time) as "Total#Sold". (See example output below.) Sort the list in descending order, thereby showing which product had the highest quantity sales first. Remove decimals from the "Total#Sold" by looking up CAST keyword in the Microsoft SQL Server 2016 online reference and using it in your query. Code: Results: Section 2: Normalization & Conceptual Design Part 1 - (30 pts) Decompose an un-normalized table. Normalize the table below to Boyce-Codd Normal Form the table below. To communicate your normalized tables/entities, use "sentence structure" (aka, relational notation) similar to the following: PRODUCT(ProductID, ProductName, etc.) or TITLE (Title id, Title, Pub id). Underline your indentifier/primary key. (No need to identify foreign keys at this point.) List your tables in sentence structure here: Normalization & Conceptual Design (Continued) Part 2 - (30 pts) Using Visio or LucidChart and following business rules, create an Entity-Relationship diagram of the tables/entities you listed above. Business Rules: - An employee can participate in many projects but may not be assigned to a project. - A project must have at least one employee assigned to it and can have many employees. - An employee can belong to one and only one department. - A department must have at least one employee and can have many. NOTE: The diagram must include relationships with minimum and maximum cardinality. Be sure to use the appropriate relationship lines (identifying or non-identifying) and appropriate corners (rounded or not) for entites. Identifiers should be in bold font. Copy and Paste your entity-relationship diagram below:
  • 2. Part 3 - (10 pts) Using the tables/entities you created and refering to your diagram, type a SQL statement below (not using SQL Server) that would return a list of employee name and their corresponding project name. Be sure to use proper form. Since the tables/entities vou created have not been developed into a database vet, there will be no output to your code at this time. Type your SQL Statement below to list the name of the employee and the project they are working on. SQL Statement: