Data Application Writing/ Project using Excel, Application Assignment Homework Help

Anonymous
timer Asked: May 17th, 2016
account_balance_wallet $9.99

Question Description

  1. NoSQL, Microsoft Access, and Pivot Tables

    Complete BOTH parts of this assignment.

    Part A: Write a 500-1000 word paper using Word discussing NoSQL. Use at least two sources outside your text and course material for this paper. Do not use Wikipedia. Use APA format for the paper, and be sure to cite all your sources using APA format. Submit your Word document for grading.

    Part B: Use the Week 3 Assignment Pet_Database File for this section of the assignment. In the PET table, delete the PetDOB field and add a numeric PetCost field. Populate this field with appropriate values. Save the changes to the PET table. Create SQL queries to do the following:

    • Display the last name and phone number of all dog owners. Use a subquery to do this.
    • Display the first and last name of owners and the type of animal of all unknown breeds.
    • Display the pet name and owner last name of all dogs.

    Save all 3 queries.

    Export the PET table to an Excel spreadsheet. Create a Pivot table. Have the cost display as currency. Take screen shots* of two different views without a report filter and paste the screen shots into a Word document. Then add a report filter and choose one value for it, take a screen shot, then choose a different value for the same filter and take another screen shot. Paste those into the Word document containing the first two screen shots. You should now have 4 screen shots in this Word document. Save the Word document as Screen shots. Save the pivot table as Pivot.

    You will have 4 files submitted for this assignment: the Word document with your paper from Part A, the Microsoft Access Pet_Database file, the Screen shots Word file, and the Pivot file.

    *To take a screen shot, have the proper information on your screen, hit the PrntScr button, and then paste into the Word document.

For part B assignment the file is located in the Drop File.

Unformatted Attachment Preview

1.SQL Q&A and Hands-On Please include the questions with your answers. Answer in complete sentences where applicable. 1) Does all standard SQL work in Microsoft Access? Explain. Answer Most SQL Query works with MS Access but we need to modify some statement to execute as they are executed in SQL. Data are retrieved from database using SQL Query Language which is a computer language for database manipulation and somehow resembles English. Having known SQL Queries will help you to work with Access Database as it uses SQL to query records from its database. 2) List and describe the four basic SQL data types. Answer 1. CHARACTER (i) Description: Fixed width character string. Maximum 8,000 characters. Storage: Defined width. 2. VARCHAR (i) Description: Variable width character string. Maximum 8,000 characters Storage: 2 bytes + number of chars 3. INT Description: Allows whole numbers between -2,147,483,648 and 2,147,483,647 Storage: 4 bytes 4.BIGINT Description: Allows whole numbers between -9,223,372,036,854,775,808 and 9,223,372,036,854,775,807 Storage: 8 bytes. 3) List and describe five SQL built-in functions. Answer 1. SQL Aggregate Functions AVG() - Returns the average value COUNT() - Returns the number of rows FIRST() - Returns the first value LAST() - Returns the last value MAX() - Returns the largest value MIN() - Returns the smallest value SUM() - Returns the sum 2. SQL Scalar Functions UCASE() - Converts a field to upper case LCASE() - Converts a field to lower case MID() - Extract characters from a text field LEN() - Returns the length of a text field ROUND() - Rounds a numeric field to the number of decimals specified NOW() - Returns the current system date and time FORMAT() - Formats how a field is to be displayed The best way to learn SQL is by actually using it. In the following problems, we will use SQL to create, populate, and query a small database. Use SQL in Microsoft Access to complete the problems. Save all queries as instructed in the problem. Submit the database file (save as Pet_Database.accdb and KEEP THIS FILE for use with a later assignment) with all your queries in addition to the Word document containing the questions and answers for numbers 1, 2, and 3. Use the following information for problems 4 – 10: Tables: PET_OWNER (OwnerID, OwnerLastName, OwnerFirstName, OwnerPhone, OwnerEmail) PET (PetID, PetName, PetType, PetBreed, PetDOB, OwnerID) **Note: OwnerID is italicized to indicate the Foreign Key** Data: 4) Write an SQL CREATE TABLE statement to create the PET_OWNER table, with OwnerID as a surrogate key. Save as CreatePetOwner. Answer: CreatePetOwner. SQL: CREATE TABLE PET_OWNER( OwnerID INT NOT NULL AUTO_INCREMENT PRIMARY KEY,OwnerLastName varchar(50), OwnerFirstName varchar(50), OwnerPhone varchar(15), OwnerEmail varchar(255)); 5) Write a set of SQL INSERT statements to populate the PET_OWNER table with the data given above. Save as PopulatePetOwner. Answer: PopulatePetOwner SQL1: Insert INTO PET_OWNER(OwnerID, OwnerLastName, OwnerFirstName, OwnerPhone,OwnerEmail) VALUES(1, 'Downs', 'Marsha', '555-537-8765', 'marsha.Downs@somewhere.com'); Or Insert INTO PET_OWNER(OwnerLastName, OwnerFirstName, OwnerPhone, OwnerEmail) VALUES(’Downs’,’Marsha’,’555-537-7654’,’Marshadowns@somewhere.com’ ); SQL2: Insert INTO PET_OWNER(OwnerID, OwnerLastName, OwnerFirstName, OwnerPhone,OwnerEmail) VALUES(2, 'James', 'Rechard', '555-656-765', 'Rechard.James@somewhere.com' ); SQL3: Insert INTO PET_OWNER(OwnerID, OwnerLastName, OwnerFirstName, OwnerPhone,OwnerEmail) VALUES(3, 'Frier', 'Liz', '5555376', 'Liz.Frier@somewhere.com' ); SQL4: Insert INTO PET_OWNER(OwnerID, OwnerLastName, OwnerFirstName, OwnerPhone,OwnerEmail) VALUES(4, 'Trent', 'Miles', '55553765', 'Miles.Trent@somewhere.com' ); 6) Write an SQL CREATE TABLE statement to create the PET table, with PetID as a surrogate key. Save as CreatePet. Answer: CreatePet: SQL: CREATE TABLE PET( PetID INT NOT NULL AUTO_INCREMENT PRIMARY KEY, PetName varchar(50), PetType varchar(50),PetBreed varchar(30),PetDOB varchar(15),OwnerId int NOT NULL,FOREIGN KEY (OwnerID) REFERENCES PET_OWNER(OwnerID)); 7) Write a set of SQL INSERT statements to populate the PET table with the data given above. Save as PopulatePet. Answer: PouplatePet SQL1: INSERT INTO PET(PetID, PetName, PetType, PetBreed, PetDOB, OwnerId) VALUES(1,’King’,’Dog’,’std.Poddle’,’27-feb-2011’,1); SQL2: INSERT INTO PET ( PetID, PetName, PetType, PetBreed, PetDOB, OwnerId )VALUES (2, 'Teddy', 'Cat', 'Cashmere', '01-Feb-12', 2); SQL3: INSERT INTO PET ( PetID, PetName, PetType, PetBreed, PetDOB, OwnerId )VALUES (3, 'Fiddle', 'Dog', 'Std.Poodle', '17-Jan-10', 1); SQL4: INSERT INTO PET ( PetID, PetName, PetType, PetBreed, PetDOB, OwnerId )VALUES (4, 'AJ', 'Dog', 'Collie Mix', '05-May-11', 3); SQL5: INSERT INTO PET ( PetID, PetName, PetType, PetBreed, PetDOB, OwnerId )VALUES (5, 'Cedro', 'Cat', 'Unknown', '06-Jan-09', 2); SQL6: INSERT INTO PET ( PetID, PetName, PetType, PetBreed, PetDOB, OwnerId )VALUES(6, 'Wooley', 'Cat', 'Unknown', 'Null', 2); SQL7: INSERT INTO PET ( PetID, PetName, PetType, PetBreed, PetDOB, OwnerId )VALUES(7, 'Buster', 'Dog', 'Border Collie', '11-Dec-08', 4); 8) Write an SQL statement to display the breed and type of all pets. Save as AllBreeds. Answer: AllBreeds SQL: Select PetType, PetBreed form PET; 9) Write an SQL statement to display the breed, and DOB of all pets having the type Cat. Save as Cats. Answer: Cats SQL: SELECT PET.PetBreed, PET.PetDOB FROM PET WHERE PetType="Cat" 10) Write an SQL statement to display the first name, last name, and email of all owners, sorted in alphabetical order by last name. Save as AlphaOwners. Answer: AlphaOwners SQL: select OwnerFirstName, OwnerLastName, OwnerEmail from pet_owner order by OwnerLastName ASC ; 11) Write an SQL statement to display all the owners’ names, with the first name in all lower case and the last name in all upper case. Save as UpperLower. Answer: UpperLower SQL: select LCASE(OwnerFirstName), UCASE(OwnerLastName) from pet_owner ; 12) Write an SQL statement to display the total number of pets. Save as TotalPets. Answer: TotalPets SQL: SELECT COUNT(*) FROM PET ; 13) Write an SQL statement to display the last name, first name and email of any owner who has a NULL value for OwnerPhone. (Note: there should be one owner who has a NULL value for OwnerPhone.) Save as PhoneNull. Answer: PhoneNull SQL: SELECT OwnerFirstName, OwnerLastName, OwnerEmail from PET_OWNER where OwnerPhone= '‘; 14) Write an SQL statement to count the number of distinct breeds. Save as NumberOfBreeds. Answer: NumberOfBreeds SQL: Select Count( Distinct PetBreed) from PET ; 15) Write an SQL statement to display the names of all the dogs. Save as Dogs Answer: Dogs SQL: Select PetName from PET where PetType=’Dog’ ; ...
Purchase answer to see full attachment

Tutor Answer

mayeskat1120
School: UT Austin

1.SQL Q&A and Hands-On
Please include the questions with your answers. Answer in complete sentences where
applicable.
1) Does all standard SQL work in Microsoft Access? Explain.
Answer
Most SQL Query works with MS Access but we need to modify some statement to
execute as they are executed in SQL.
Data are retrieved from database using SQL Query Language which is a
computer language for database manipulation and somehow resembles English.

Having known SQL Queries will help you to work with Access Database as it uses SQL to query
records from its database.
2) List and describe the four basic SQL data types.
Answer

1. CHARACTER (i)
Description: Fixed width character string. Maximum 8,000 characters.
Storage: Defined width.
2. VARCHAR (i)
Description: Variable width character string. Maximum 8,000 characters
Storage: 2 bytes + number of chars
3. INT
Description: Allows whole numbers between -2,147,483,648 and 2,147,483,647
Storage: 4 bytes
4.BIGINT
Description: Allows whole numbers between -9,223,372,036,854,775,808 and
9,223,372,036,854,775,807
Storage: 8 bytes.

3) List and describe five SQL built-in functions.
Answer

1. SQL Aggregate Functions
AVG() - Returns the average value
COUNT() - Returns the number of rows
FIRST() - Returns the first value
LAST() - Returns the last value
MAX() - Returns the largest value
MIN() - Returns the smallest value
SUM() - Returns the sum
2. SQL Scalar Functions
UCASE() - Converts a field to upper case
LCASE() - Converts a field to lower case
MID() - Extract characters from a text field
LEN() - Returns the length of a text field
ROUND() - Rounds a numeric field to the number of decimals specified
NOW() - Returns the current system date and time
FORMAT() - Formats how a field is to be displayed

The best way to learn SQL is by actually using it. In the following problems, we will use
SQL to create, populate, and query a small database. Use SQL in Microsoft Access to
complete the problems. Save all queries as instructed in the problem. Submit the
database file (save as Pet_Database.accdb and KEEP THIS FILE for use with a later
assignment) with all your queries in addition to the Word document containing the
questions and answers for numbers 1, 2, and 3.
Use the following information for problems 4 – 10:
Tables:
PET_OWNER (OwnerID, OwnerLastName, OwnerFirstName, OwnerPhone, OwnerEmail)
PET (PetID, PetName, PetType, PetBreed, PetDOB, OwnerID)

**Note: OwnerID is italicized to indicate the Foreign Key**
Data:

4) Write an SQL CREATE TABLE statement to create the PET_OWNER
table, with Own...

flag Report DMCA
Review

Anonymous
awesome work thanks

Similar Questions
Related Tags

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors