Home > OS >  SYNTAX to change the name of a salesperson only when their sales are <50
SYNTAX to change the name of a salesperson only when their sales are <50

Time:06-06

I am looking for the syntax to change the name of salesperson Inga to Annette, but only where Inga's SALES are <50

I have attached a screenshot of the database - I have tried every syntax I can think of, I am positive it will be simple - I have just been stuck on this for a while.

enter image description here

CodePudding user response:

You can use UPDATE statement, like this:

UPDATE tablename
SET SalesPerson="Annette"
WHERE SalesPerson="Igna" AND SalesAmount>50;
  • Related