Solved by verified expert:I’ll give more hours if need be.For this assignment, you will display and modify information from a Microsoft Access database by using SQL commands.Using the Microsoft Access database Books, write SQL statements for the following tasks. Once complete, copy the SQL statements from Microsoft Access and paste them in a Microsoft Word document that will be submitted along with part II of the assignment.Write an SQL statement to display the publication ID, publication date, cost, and category of each book planned for publication ID number 4.Repeat the previous task but include ID and Date as column aliases for the first two columns.Write an SQL statement to display the least expensive retail price book in each book category.Repeat the previous task but sort the displayed categories in the descending order.Write an SQL statement to display the customer number, city of destination, and shipping date for all shipments with order number above 2. (Hint: Use the Orders table.)Repeat the previous task but further restrict the output to shipping dates after January 1, 2013. (Hint: The date restriction will require a format identical to the one displayed in the previous task, and it must be surrounded by pound signs—#01/01/2013# for example.)Write an SQL statement to display the publication ID, average retail price, and average cost of all books. Group the output by publication ID.Write INSERT statements to add the following data to the Publisher table:PubIDNameContactPhone6READ WITH USJohn Doe866-888-99997KNOWLEDGE FOR ALLJane Doe800-1212-55558CHEAP PUBLISHINGTom Smith000-321-40719TEXT AND MOREJohn Carter032-100-777710BOOK BUSTERGeorge Stevens777-555-1212Write a single SELECT statement that will verify the records inserted.Write a DELETE statement to remove only the new BOOK BUSTER record.Part II—Course ProjectCourse Project Part 2—Identifying Entities and AttributesIn Week 1, you developed an initial idea to build a database. You followed the systems development life cycle (SDLC) and got an idea to start with. Now, it is time to start building your database.What next?The project description developed in W1 Assignment 3 is a first draft, so consider it a rough draft. This means that you should continue to develop your idea.The next step is to select some nouns in your project description. For example, a project has invoices, invoice distributions, and suppliers as nouns. These nouns are entities, or tables, that would be used to create the E-R model. Then, the adjectives and verbs that describe the nouns would become the attributes, or columns.Therefore, in the example that we considered, we might have the following entities and attributes:InvoicesInvoice_DistributionsSuppliers# Invoice_id# Invoice_distribution_id# Supplier_idInvoice_numInvoice_distribution_line_numNameInvoice_typeLine_typeAddressSupplier_idInvoice_idUsing your knowledge of selecting entities and attributes, complete the following tasks for this week:Review your project descriptions and come up with five entities and some attributes that describe the entities. Do not identify more than five attributes for each entity.In a Microsoft Excel spreadsheet, define six columns (nouns) from the project description you submitted in W1 Assignment 3 that you consider key to your database. These will be the tables for the database. Then, in the rows for each column, define the attributes (adjectives).You have taken your creative idea and started to move the nouns and adjectives you identified in a logical model—the E-R model. This will give you a working outline of the tables that will be created in the final script.Assignment DeliverableAfter you complete the lab and course project, collate the information from both in a 3- to 4-page report in a Microsoft Word document.
week_one.docx
week_one.docx
Unformatted Attachment Preview
Week One Project
Rose Rivera
Date: April 17, 2018
Solution to SQL Development Project
Part 1: Hands-on lab
1. To display all the information from the Customer table
SELECT * FROM Customer;
2. To display each shipping date for customer 1 from the Invoice table
SELECT CustomerID, DateOut FROM Invoice WHERE CustomerID=1;
3. To display the names of all the trees that cost at least $200.00
SELECT FirstName,LastName,TotalAmount FROM Customer ,Invoice WHERE TotalAmount>=200.00;
4. To display all the information for invoice number 2
SELECT * FROM Customer ,Invoice WHERE InvoiceID=2;
5. To list the phone and last name of all customers
SELECT Phone,LastName FROM Customer ;
6. To list the phone, first name, and last name of all customers whose last name starts with “J”
SELECT Phone,FirstName,LastName FROM Customer WHERE LastName LIKE ‘J*’ ;
7. To return the number of customers
SELECT count(CustomerID) FROM Customer;
8. To determine the average total invoice amount
SELECT AVG(TotalAmount) FROM Invoice;
9. To show all the items ordered from invoice number 3
SELECT * FROM invoice WHERE InvoiceID=3;
10. To show the first and last names along with the invoice number of all customers with an invoice of at
least $250.00
SELECT FIrstName,LastName,InvoiceID FROM Customer ,Invoice WHERE TotalAmount>=250.00;
Part 2: Course project
Database idea
The database idea is all about Gym Management System which is one of my hobby. Managing
the Gym activities can be at some times tiresome .A good database management system will help
the Gym manager manage the Gym without having any problem. Once developed it will
facilitate an easy way of managing the members and employees data.
Database to create.
The database will increase the following entities as described in the relation diagram below.
This contains all the products that are necessary for the running of the GYM
Products ->Product ID, Supplier, Product Name, Qty, Price.
The GYM Employees -> Employee ID, Name, Gender, City, Wage, Street.
The Gym members -> Member ID, Member Name, Gender, Age, City, and Address.
Other attribute of the database includes receipts, Schedule and Payroll. Together they make the
GY management system.
Outline of the SDLC
•
Strategy and analysis for a business.
This involves scrutinizing the current situation of the business so to realize where to start. It also
include the following
i.
Collecting the system requirements
ii.
Analyzing the current situation.
iii.
Analyzing the business strategy.
The data collected in this phase shall form the basis for the system development.
•
Analysis of the current system:
✓ What does the company have?
This includes analysis the current situation of the facility to determine the systems they are
using. Mostly they use manual mean such as book and manual receipts to keep the records of
their customer/members and employees. Handling such data requires time and is sometime
expensive.
✓ What business projections does it have?
With the implementation of a database system the facilitate aims at:
i.
Increasing the facility efficiency.
ii.
Reducing the facility running cost.
iii.
To generate the required reports on time.
iv.
Save time and thus make profits.
•
Integration with other systems
Once implemented the system shall be able to connect to other system via database access
through network. All the units development shall be done while having the idea of integration in
mind. With thus it shall be easy for the system to connect and communicate with the other
systems.
•
Documentation and communication
Once completed a well-organized system manual shall be availed at to everyone who is involved
with the system. Communication hall be made available in any form possible .Code and system
documentation will also be made available.
•
Design for changes
This include
•
i.
Accommodating for the system change.
ii.
Accommodating for the system scalability.
iii.
Planning how to implement any system changes.
Reusable resources
This includes the already available resources such as
i.
Printers.
ii.
Computers.
Lab and course project Report
Lab-Report
Working with SQL command gave me the experience and the confidence that I required in order
to develop a meaningful database system. The Theresa’s Trees database shown below was a good
relational based database system. It show how a system entity relationship can build a good
system.
1. The customer Table
2. The Invoice Table
3. The Invoice Item table
All this enabled me to work with the following SQL statement
i.
SELECT -To select the required customer and invoice related data.
ii.
Count –To count the required number of the customer.
iii.
AVG – To determine the Average amount
iv.
Table creation.
v.
Creating Queries.
Working with the access database was a great experience which was incorporated with amazing
running experiences.
Course project Report.
The Course project Report gave me an opportunity to explore one of my idea into a viable
system. This includes exploring every aspects of the Gym management system and relating it to
the aspects of database management system. This included
i.
Describing the business idea.
In this context I was able to explore the idea of a GYM management system. Which is one of my
hobby idea. I was able to determine and explore more about the idea.
ii.
Database outline.
In this outline I was able to find an outline for this Idea by providing an Entity relationship
diagram. Other than the diagram I was able to provide the entities and their attributes that am
going to work for this project.
iii.
Outlining the SDLC.
This includes the software Development Life Cycle, The related subcategories in relation to the
Gym Management system.
The idea analysis involved exploring the GYM management system business aspects and how
they relate to the system.
Analysis of the current system, which includes how the business was all about and the business
projections of it. This includes how the business aims to with the system and how the system
shall help the business prospers.
Integration with other systems includes how the current system can be integrated with the other
systems. In this context I was able to outline the system interoperability.
On the documentation and communication – I was able to outline how the system documentation
and communication shall be done.
Other parts of the course project included how the system shall be designed for change and how
the business resources shall be re-used.
Week One Project
Date: April 17, 2018
Solution to SQL Development Project
Part 1: Hands-on lab
1. To display all the information from the Customer table
SELECT * FROM Customer;
2. To display each shipping date for customer 1 from the Invoice table
SELECT CustomerID, DateOut FROM Invoice WHERE CustomerID=1;
3. To display the names of all the trees that cost at least $200.00
SELECT FirstName,LastName,TotalAmount FROM Customer ,Invoice WHERE TotalAmount>=200.00;
4. To display all the information for invoice number 2
SELECT * FROM Customer ,Invoice WHERE InvoiceID=2;
5. To list the phone and last name of all customers
SELECT Phone,LastName FROM Customer ;
6. To list the phone, first name, and last name of all customers whose last name starts with “J”
SELECT Phone,FirstName,LastName FROM Customer WHERE LastName LIKE ‘J*’ ;
7. To return the number of customers
SELECT count(CustomerID) FROM Customer;
8. To determine the average total invoice amount
SELECT AVG(TotalAmount) FROM Invoice;
9. To show all the items ordered from invoice number 3
SELECT * FROM invoice WHERE InvoiceID=3;
10. To show the first and last names along with the invoice number of all customers with an invoice of at
least $250.00
SELECT FIrstName,LastName,InvoiceID FROM Customer ,Invoice WHERE TotalAmount>=250.00;
Part 2: Course project
Database idea
The database idea is all about Gym Management System which is one of my hobby. Managing
the Gym activities can be at some times tiresome .A good database management system will help
the Gym manager manage the Gym without having any problem. Once developed it will
facilitate an easy way of managing the members and employees data.
Database to create.
The database will increase the following entities as described in the relation diagram below.
This contains all the products that are necessary for the running of the GYM
Products ->Product ID, Supplier, Product Name, Qty, Price.
The GYM Employees -> Employee ID, Name, Gender, City, Wage, Street.
The Gym members -> Member ID, Member Name, Gender, Age, City, and Address.
Other attribute of the database includes receipts, Schedule and Payroll. Together they make the
GY management system.
Outline of the SDLC
•
Strategy and analysis for a business.
This involves scrutinizing the current situation of the business so to realize where to start. It also
include the following
i.
Collecting the system requirements
ii.
Analyzing the current situation.
iii.
Analyzing the business strategy.
The data collected in this phase shall form the basis for the system development.
•
Analysis of the current system:
✓ What does the company have?
This includes analysis the current situation of the facility to determine the systems they are
using. Mostly they use manual mean such as book and manual receipts to keep the records of
their customer/members and employees. Handling such data requires time and is sometime
expensive.
✓ What business projections does it have?
With the implementation of a database system the facilitate aims at:
i.
Increasing the facility efficiency.
ii.
Reducing the facility running cost.
iii.
To generate the required reports on time.
iv.
Save time and thus make profits.
•
Integration with other systems
Once implemented the system shall be able to connect to other system via database access
through network. All the units development shall be done while having the idea of integration in
mind. With thus it shall be easy for the system to connect and communicate with the other
systems.
•
Documentation and communication
Once completed a well-organized system manual shall be availed at to everyone who is involved
with the system. Communication hall be made available in any form possible .Code and system
documentation will also be made available.
•
Design for changes
This include
•
i.
Accommodating for the system change.
ii.
Accommodating for the system scalability.
iii.
Planning how to implement any system changes.
Reusable resources
This includes the already available resources such as
i.
Printers.
ii.
Computers.
Lab and course project Report
Lab-Report
Working with SQL command gave me the experience and the confidence that I required in order
to develop a meaningful database system. The Theresa’s Trees database shown below was a good
relational based database system. It show how a system entity relationship can build a good
system.
1. The customer Table
2. The Invoice Table
3. The Invoice Item table
All this enabled me to work with the following SQL statement
i.
SELECT -To select the required customer and invoice related data.
ii.
Count –To count the required number of the customer.
iii.
AVG – To determine the Average amount
iv.
Table creation.
v.
Creating Queries.
Working with the access database was a great experience which was incorporated with amazing
running experiences.
Course project Report.
The Course project Report gave me an opportunity to explore one of my idea into a viable
system. This includes exploring every aspects of the Gym management system and relating it to
the aspects of database management system. This included
i.
Describing the business idea.
In this context I was able to explore the idea of a GYM management system. Which is one of my
hobby idea. I was able to determine and explore more about the idea.
ii.
Database outline.
In this outline I was able to find an outline for this Idea by providing an Entity relationship
diagram. Other than the diagram I was able to provide the entities and their attributes that am
going to work for this project.
iii.
Outlining the SDLC.
This includes the software Development Life Cycle, The related subcategories in relation to the
Gym Management system.
The idea analysis involved exploring the GYM management system business aspects and how
they relate to the system.
Analysis of the current system, which includes how the business was all about and the business
projections of it. This includes how the business aims to with the system and how the system
shall help the business prospers.
Integration with other systems includes how the current system can be integrated with the other
systems. In this context I was able to outline the system interoperability.
On the documentation and communication – I was able to outline how the system documentation
and communication shall be done.
Other parts of the course project included how the system shall be designed for change and how
the business resources shall be re-used.
…
Purchase answer to see full
attachment