week 4 project

Part I—Hands-on LabFor the hands-on lab, you will submit a Microsoft Access database and a Microsoft Word document with SQL statements for the following:Create a new Microsoft Access database named Travel. Note that Microsoft Access does not support the use of SQL scripts to create databases. In Microsoft Word, type the SQL script that you would have used to create the database.Now, add a table named Car_Rental to the Travel database. Make sure that you include the Car_Rental_ID field whose datatype is AutoNumber. In Microsoft Word, type the SQL script that you would have used to create the table. Include the following fields:Car_Rental_ID (AutoNumber, primary key, required)Agency (Text(25), required)Size (Text(25), required)Make (Text(12), required)Model (Text(25))Daily_Cost (Currency)Write INSERT statements for adding the following data to the new table:AgencySizeMakeModelDaily_CostAvisMidFord 89.95AvisFullFordTaurus112.95HertzCompChevCavalier69.95HertzMidChevMalibu84.99HertzFullChevImpala114.99NationalMidChrysStratus77.95NationalFullChrysIntrepid109.95Verify the values inserted by using a query.Display each distinct agency (each agency only once).Display the average cost of a Chrysler rental.Display the total count of cars available.Display the highest-priced vehicle.Display each unique agency with the average car price for that agency.Part II—Course ProjectCourse Project Part 4—Creating a DatabaseContinuing with the project you worked on for Weeks 1, 2 and 3, this week, complete the following tasks:In Microsoft Access, create the database and tables that you identified in W3 Assignment 2. In Microsoft Word, write the SQL statements to create the database and tables.Write SQL statements to populate the tables. Run the SQL statements in Microsoft Access for populating the tables.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. Include the SQL scripts in the Microsoft Word document. Include the Travel database as a separate attachment.Submission DetailsName your document SU_ITS3102_W4_A2_LastName_FirstInitial.doc.Name the Travel database SU_ITS3102_W4_A2_LastName_FirstInitial_Travel.accdb.Submit your document and the Travel database to the Submissions Area by the due date assigned
week_one.docx

week_two.docx

Don't use plagiarized sources. Get Your Custom Essay on
week 4 project
Just from $13/Page
Order Essay

week_3.docx

Unformatted Attachment Preview

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.
Part 1: Access database SQL
•
Write an SQL statement to display the publication ID, publication date, cost, and category of
each book planned for publication ID number 4.
Select pubID, pubDate, Cost, Category from Books where PubID=4;
•
Repeat the previous task but include ID and Date as column aliases for the first two columns.
Select pubID as ID, pubDate as ‘Date’, Cost, Category from Books where PubID=4;
•
Write an SQL statement to display the least expensive retail price book in each book
category.
SELECT Books.Category, Min(Books.Retail) AS MinOfRetail
FROM Books
GROUP BY Books.Category;
•
Repeat the previous task but sort the displayed categories in the descending order.
SELECT Books.Category, Min(Books.Retail) AS MinOfRetail
FROM Books GROUP BY Books.Category order by Books.Category desc;
•
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.)
SELECT Orders.CustomerID, Customers.City, Orders.ShippingDate
FROM Customers INNER JOIN Orders ON Customers.CustomerID = Orders.CustomerID
WHERE (((Orders.OrderID)>2));
•
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.)
SELECT Orders.CustomerID, Customers.City, Orders.ShippingDate
FROM Customers INNER JOIN Orders ON Customers.CustomerID = Orders.CustomerID
WHERE (((Orders.OrderID)>2) AND ((Orders.OrderDate)>#1/1/2013#));
•
Write an SQL statement to display the publication ID, average retail price, and average cost
of all books. Group the output by publication ID.
SELECT Books.PubID, Avg(Books.Retail) AS AvgOfRetail, Avg(Books.Cost) AS AvgOfCost
FROM Books
GROUP BY Books.PubID;
•
Write INSERT statements to add the following data to the Publisher table:
INSERT INTO Publisher (PubId, PubName, Contact, Phone)
VALUES (‘6′,’READ WITH US’,’John Doe’,’866-888-9999′);
INSERT INTO Publisher (PubId, PubName, Contact, Phone)
VALUES (‘7′,’KNOWLEDGE FOR ALL’,’Jane Doe’,’800-1212-5555′);
INSERT INTO Publisher (PubId, PubName, Contact, Phone)
VALUES (‘8′,’CHEAP PUBLISHING’,’Tom Smith’,’000-321-4071′);
INSERT INTO Publisher (PubId, PubName, Contact, Phone)
VALUES (‘9′,’TEXT AND MORE’,’John Carter’,’032-100-7777′);
INSERT INTO Publisher (PubId, PubName, Contact, Phone)
VALUES (’10’,’BOOK BUSTER’,’George Stevens’,’777-555-1212′);
•
Write a single SELECT statement that will verify the records inserted.
SELECT * FROM publisher ORDER BY PubId Desc ;
•
Write a DELETE statement to remove only the new BOOK BUSTER record.
DELETE FROM publisher WHERE PubName=’BOOK BUSTER ‘;
Part II—Course Project
Course Project Part 2—Identifying Entities and Attributes
In the Gym Management System the following are some of the potential entities and attributes
i.
Employee -> EmpID, EMPName, Gender, City, Address
ii.
Products ->Product ID, Supplier, Product Name, Qty, Price.
iii.
Schedule ->Schedule ID, Schedule Name, date, Time
iv.
Order -> Order ID, Order Date, City, shipping address,
v.
The Gym members -> Member ID, Member Name, Gender, Age, and Address.
The tables below shows the entities in columns and their attributes in rows:
Employee Schedule
EmpID
Schedule ID
EMPName Schedule
Name
Gender
date
Order
Order ID
Order Date
Product
Product ID
Supplier
City
City
shipping
address
Product
Name
Qty
Time
Address
Price
member
Member ID
Member
Name
Gender
age
Address
The project Report
This week assignments involved working with SQL commands to modify an access database
known as Book. Working with SQL command gave me the experience and the confidence that I
required in order to develop a meaningful database system. The Books database shown below
was a good relational based database system.
The book table
The customer table
The Order table
Finally, the publisher table
Using the above access tables I was able to Query the tables’ rows using SQL Select statements,
Insert into the tables, and delete. Working with the access database was a great experience which
enable me to put into the practice what I have been learning in the books and in the class.
Project report
This week’s report involved identifying the Gym management system entities (nouns) and their
respective attributes (adjectives).The process of identifying the system attributes was simple, as I
followed the guidelines
which were listed in the assignments instruction. While using them I
was able to identify the following entities and their related attributes as follow.
i.
Employee -> EmpID, EMPName, Gender, City, Address
ii.
Products ->Product ID, Supplier, Product Name, Qty, Price.
iii.
Schedule ->Schedule ID, Schedule Name, date, Time
iv.
Order -> Order ID, Order Date, City, shipping address,
v.
The Gym members -> Member ID, Member Name, Gender, Age, and Address.
Working with the project enabled me to have the required experience that can create a sample
database system for an institution or a hobby. This in by enabling to be able to determine the data
to be stored in the database and or the relationships between the different data elements of the
database.
Running head: WEEK THREE PROJECT
1
Week Three Project
ITS3102
April 30th 2018
2
Week 3 Project
Part I—Hands-on Lab
1. To update the publisher name from READ WITH US to READ FOR US
Update publisher set pubname =”READ FOR US” where pubname = “READ WITH US”;
2. To verify the updated name field for the publisher with ID 6
Select pubname from publisher where pubid=6;
3. To make the following updates to the Publisher table (be careful with WHERE):
Make Contact=”John Travolta” for publisher with ID number 4
Update publisher set contact=”John Travolta” where pubid=4;
Make Phone=888-999-7777 for TEXT AND MORE
update publisher set phone =”888-999-7777″ where pubname=”TEXT AND MORE”;
4. To list the customer numbers and names of all individuals who have purchased
books in the information systems category
SELECT Orders.CustomerID, Customers.LastName, Customers.FirstName
FROM (Orders INNER JOIN Customers ON Orders.CustomerID =
Customers.CustomerID) INNER JOIN Books ON Orders.ISBN = Books.ISBN
WHERE (((Books.Category)=”information systems”));
Week 3 Project
3
5. To identify the book written by an author with the last name Cain. Perform the
search by using the author name
SELECT Books.Title
FROM Books
GROUP BY Books.Title, Books.Author
HAVING (((Books.Author) Like ‘*Cain’));
6. To produce a list of all the customers who live in the state of Indiana and have
ordered books on information systems
SELECT Orders.CustomerID, Customers.FirstName, Customers.State
FROM Books INNER JOIN (Customers INNER JOIN Orders ON
Customers.CustomerID = Orders.CustomerID) ON Books.ISBN = Orders.ISBN
GROUP BY Orders.CustomerID, Customers.LastName, Customers.FirstName,
Customers.State, Books.Category
HAVING (((Customers.State)=”IN”) AND ((Books.Category)=”information systems”));
7. To display a list of all the books in the Books table. If a customer has ordered a
book, list the corresponding order number and the state in which the customer
resides
SELECT Books.*, Orders.OrderID, Customers.State
FROM Books INNER JOIN (Customers INNER JOIN Orders ON Customers.CustomerID
= Orders.CustomerID) ON Books.ISBN = Orders.ISBN;
8. To identify the authors of the books ordered by Sheila Smith. Perform the search by
using the customer name
Week 3 Project
4
SELECT Books.Author, Customers.FirstName, Customers.LastName
FROM Books INNER JOIN (Customers INNER JOIN Orders ON
Customers.CustomerID = Orders.CustomerID) ON Books.ISBN = Orders.ISBN
WHERE (((Customers.FirstName) Like “Sheila”) AND ((Customers.LastName) Like
“Smith”));
9. To list the customer numbers and names of all the individuals who have purchased
books in the children category
SELECT Customers.CustomerID, Customers.FirstName, Customers.LastName,
Books.Category
FROM Books INNER JOIN (Customers INNER JOIN Orders ON
Customers.CustomerID = Orders.CustomerID) ON Books.ISBN = Orders.ISBN
WHERE (((Books.Category)=”childrens”));
10. To add the following items to the Books table:
Insert into books values(“1234567890″,” A Good Book” ,” John Jeffries “, 10/11/2005 ,
13.5, 15.00 ,”Non-Fiction”, 7);
Insert into books values(“2314569874″,” Trains for Everyone” ,”Corey Berkey”,
12/15/2011, 10.25, 25.25 ,”Children “, 8);
Insert into books values(“1598745682″,” Eating In” ,”Susan Smythe”, 09/09/2012
, 20.00 , 30.50 ,”Cooking”, 6);
Insert into books values(“99954123654″,” Another Vampire Story” ,”Ann Oats”,
09/05/2010, 11.23,13.52 ,”Fiction”, 4);
Insert into books values(“1025874159″,” Databases are Fun!” ,”Tony
Stevens”,01/01/2013, 4.12, 5.23,”Information Systems”, 9);
5
Week 3 Project
11. To delete the last record added
Delete * from books where ISBN=”1025874159″;
12. To update the name Susan Smythe to Susan Smythe-Brown
update books set Author=”
Susan Smythe-Brown” where pubid=6;
Part II—Course Project
Converting your logical E-R model to a physical model.
Primary Key
EmpID
Schedule ID
Order ID
Product ID
Member ID
Name of Column
Employee
Schedule
Order
product
Member
Null (NorY)
Not Null
Not Null
Not Null
Not Null
Not Null
Datatype
Description
Foreign Key
Foreign Key Table
integer
A unique
identifier for the
employee table
N/A
N/A
integer
A unique
identifier for the
schedule table
N/A
N/A
integer
A unique
identifier for the
Order table
Product ID
Product
integer
A unique
identifier for the
product table
N/A
N/A
integer
A unique
identifier for the
member table
N/A
N/A
6
Week 3 Project
The E-R model of the tables
The course report
Report on Part I—Hands-on Lab
This week project and assignment involved continued SQL command on access books database
shown below.
The SQL operation involves selection using joins and other clauses.
Week 3 Project
The customer Table
The books table
The order table
The publisher table
7
8
Week 3 Project
Using the above access tables I was able to Query the tables’ rows using SQL Select statements,
Insert into the tables, and delete. Working with the access database was a great experience which
enable me to put into the practice what I have been learning in the books and in the class.
Project Report
This week’s project work involved converting the logical E-R model created in earlier week
into a physical model which is based on the following columns. Primary Key, Name of
Column, Null, Data type, Description, Foreign Key and Foreign Key Table identification.
Eventually after considering all the requirements and the requirement for writing a clear ER
model I was able to develop the following
Primary Key
Name of Column
Null (NorY)
Datatype
Description
Foreign Key
Foreign Key Table
EmpID
Employee
Not Null
integer
A unique
identifier for the
employee table
N/A
N/A
Schedule ID
Schedule
Not Null
integer
A unique
identifier for the
schedule table
N/A
N/A
Order ID
Order
Not Null
integer
A unique
identifier for the
Order table
Product ID
Product
9
Week 3 Project
Product ID
product
Not Null
integer
A unique
identifier for the
product table
N/A
N/A
Member ID
Member
Not Null
integer
A unique
identifier for the
member table
N/A
N/A
And an ER model which is based on the above table.
Working with the project enabled me to have the required experience that can create a sample
database system for an institution or a hobby. This in by enabling to be able to determine the data
to be stored in the database and or the relationships between the different data elements of the
database.
Week 3 Project
10

Purchase answer to see full
attachment

GradeAcers
Calculate your paper price
Pages (550 words)
Approximate price: -

Why Work with Us

Top Quality and Well-Researched Papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional and Experienced Academic Writers

We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.

Free Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.

Prompt Delivery and 100% Money-Back-Guarantee

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.

Admissions

Admission Essays & Business Writing Help

An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.

Reviews

Editing Support

Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.

Reviews

Revision Support

If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.

Order your essay today and save 15% with the discount code DISCOUNT15