Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

~Access SQL Help Need~ CANT FIRGURE OUT HOW TO UPDATE : Update Rating in Customer Table to Excellent for customers that have placed orders. Insert

~Access SQL Help Need~

CANT FIRGURE OUT HOW TO UPDATE:

Update Rating in Customer Table to Excellent for customers that have placed orders. Insert field Rating into table Customers first.

Already incerted the field Rating into the Customer_t table with the following:

ALTER TABLE Customer_t ADD COLUMN Rating VARCHAR(255);

The following is what my instructor has given me when I asked the same question, but I still am struggling with it.

image text in transcribed

Here are the two tables in my database that reference this problem:

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Syntax UPDATE table SET newvalue WHERE criteria; The UPDATE statement has these parts: Part Description table The name of the table containing the data you want to modify. newvalue An expression that determines the value to be inserted into a particular field in the updated records. criteria An expression that determines which records will be updated. Only records that satisfy the expression are updated Link: https://docs.microsoft.com/en-us/office/client-developerlaccess/desktop-database-reference/update-statement-microsoft-access-sql An SQL UPDATE example that refers to a second table is as follows: UPDATE Tbl1 as A INNER JOIN tb12 AS B ON A.userID -B.UserID SET A. userID = B. [UserID]; A Generic Example of Q4 is as follows: UPDATE Table 1 INNER JOIN Table 2 ON Table1.FieldKey1-Table2.FieldKey1 SET NewField "GOOD" WHERE (((Table2.FieldDate) is Not Null)); You must first Alter Table 1 to ADD a the NewField

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago