Ashford 4: - Week 3 - Assignment Customer Service Database Show a Structured Que
ID: 3663142 • Letter: A
Question
Ashford 4: - Week 3 - Assignment Customer Service Database Show a Structured Query Language (SQL) query, and screenshot your results in a Microsoft Word document to submit to your instructor. For Part 2, provide explanations and screenshots documenting Steps 1 through 4. Part 1: 1.Please download, unzip, and open this zip file of the Microsoft Access Customer Service Database. 2.Save your database. 3.You should now be able to use Microsoft Access and the database created to complete the assignment. Part 2: 1.Add 10 customers to the database using the Customers table. Show the table, including the SQL Code. 2.Using SQL query, update more than one element in a customer record. Show before and after data, including the SQL code. 3.Add an 11th customer, and then delete them with a SQL query. Show before and after data, including the SQL Code. 4.Create a report displaying the customer records using multiple tables. Identify the primary keys in the tables you are reporting on, and show the results of your report. 5.Screenshot your results into a Microsoft Word document to submit to your instructor using your First and Last name as the file name. SQL statements should be complex. All data and screenshots should be included in a word document with an explanation of the actions you performed. The document should have a minimum of six screenshots with explanations.
Explanation / Answer
PART 2:
1) ADDING 10 CUSTOMERS TO THE DATABASE
FIRST CREATE A TABLE CUSTOMER
SQL>CREATE TABLE CUSTOMER(CUSTOMER_NAME VARCHAR2(30) PRIMARY KEY);
NOW INSERTING CUSTOMERS TO THE TABLE
SQL>INSERT INTO CUSTOMER VALUES('CUS01');
LIKE THIS ADD UPTO 10 CUSTOMERS
SQL>INSERT INTO CUSTOMER VALUES('CUS10');
2) UPDATING CUSTOMER
SQL>UPDATE CUSTOMER SET CUSTOMER_NAME=CUS_005
WHERE CUSTOME_NAME=05;
1 ROW UPDATED IN THE TABLE
3) NOW, INSERTING 11TH CUSTOMER INTO THE CUSTOMER TABLE
SQL>INSERT INTO CUSTOMER VALUES('CUS_11');
1 ROW INSERTED INTO THE CUSTOMER TABLE
NOW, DELETING THE 11TH RECORD FROM THE CUSTOMER TABLE
SQL>DELETE FROM CUSTOMER WHERE CUSTOMER_NAME='CUS_11';
1 ROW DELETED FROM THE CUSTOMER TABLE
NOW, THERE IS ONLY 10 ROWS IN THE CUSTOMER TABLE........................
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.