SlideShare una empresa de Scribd logo
1 de 2
Descargar para leer sin conexión
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:

Más contenido relacionado

Similar a 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 a 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
 

Más de 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
 

Más de 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
 

Último

Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 

Último (20)

Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 

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: