Write the UPDATE command to increase the commission (column name :COMM) by 500 of all the salesman who have achieved sales (Column name : SALES) more than 20000. The table’s name is COMPANY?

Answers

Answer 1

Answer:

UPDATE COMPANY

SET COMM=COMM + 500

WHERE SALES> 20000;

Explanation:

The update command is used for alter the record in the database management system in the table .The update command command modify the record on the some condition in the table in the database management system.

Following are syntax for using the update command .

UPDATE table-name

SET column name 1,column name 2 .........

Where condition

In the given question table -name is "COMPANY" the condition is on the sales column and it update the table only when sales is more than 20000 and set the column COMM by 500.
Answer 2

The UPDATE command that increases the commission column is: UPDATE COMPANY  SET COMM=COMM + 500  WHERE SALES> 20000;

The syntax of an UPDATE SQL command is:

UPDATE table_name SET column = value, where condition

From the question, the table name is COMPANY.

So, we have:

UPDATE COMPANY SET column = value, where condition

The update statement is to increment the COMM column by 500.

So, the query becomes

UPDATE COMPANY  SET COMM=COMM + 500  WHERE condition

Lastly, only columns where SALES are greater than 20000 should be updated.

So, the complete command is:

UPDATE COMPANY  SET COMM=COMM + 500  WHERE SALES> 20000;

Read more about database at:

https://brainly.com/question/15334693


Related Questions

Other Questions
Settlement in the Northwest Territory: stayed the same. decreased. increased. Meru Peak is 765 m higher than Mt. Kilimanjaro. If the sum of their heights is 12,555 m, find the height of Mt. Kilimanjaro. The distance between (2,0) and (5, -1) is Question 1 of 102 PointsWhich of these writings uses rhetoric to appeal primarily to the emotions ofthe audience?A. John Dickinson's Letters from a Farmer in PennsylvaniaB. Patrick Henry's "Give Me Liberty, or Give Me Death"C. John Adams's lettersD. Benjamin Franklin's "Join, or Die"SUBM. Which article would most likely use a compare-and-contrast text structure?"How Practice Can Make Perfect""Setting Up Your New Profile Page"O "A Guide to Rainwater Harvesting""MP3 Players: The Pros and Cons" How did you figure out the number of windows on 10 floors? A plastic rod of length d = 1.5 m lies along the x-axis with its midpoint at the origin. The rod carries a uniform linear charge density = 2.5 nC/m. The point P is located on the positive y-axis at a distance y0 = 15 cm from the origin. The z-axis points out of the screen. Integrate your correct choice in part (b) over the length of the rod and choose the correct expression for the y-component of the electric field at point P. PLEASE HELP ALGEBRA PROBLEM!!! 20 POINTS ANSWER A-D 10.1 Populations and Samples1. A company uses a computer to identify their 600 most loyal customersfrom its database and then surveys those customers to find out how10.2 Making Inferences from a Random Sample2. A university has 30,330 students. In a random sample of 270 students,18 speak three or more languages. Predict the number of studentsat the university who speak three or more languages.10.3 Generating Random SamplesA store receives a shipment of 5,000 MP3 players. In a previous shipmentnumbers 1 through 300 represent defective MP3 players, and the numbersnumbers to simulate a random sample of this shipment. The clerk lets the301 through 5,000 represent working MP3 players. The results are given.13 2,195 3,873 525 900 167 1,094 1,472 7095,000they like their service. Identify the population and determine whetherof 5,000 MP3 players, 300 were defective. A store clerk generates random3. Based on the sample, how many of the MP3 players might the clerk4. Can the manufacturer assume the prediction is valid? Explain.5. How can you use random samples to solve real-world problems?the sample is random or biased,predict would be defective?ESSENTIAL QUESTION A certain substance has a half life of 1 hour. If you start with 3000 grams of the substance, how much will you have in 1 hour? Which of the following are solutions to the quadratic equation? Check all that apply x^2 + 12x + 36 = 7 FAST ANSWER PLEASE THANKS if y=Kxz SQUARED, FIND K IF X=3. Z=2. y=60 Identify the financial statement (or statements) that each account would appear on. Use I for Income Statement, RE for Statement of Retained Earnings, B for Balance Sheet, and C for Statement of Cash Flows.1. Accounts Payable 2. Cash 3. Common Stock 4. Accounts Receivable 5. Rent Expense 6. Service Revenue 7. Office Supplies 8. Dividends 9. Land 10. Salaries Expense Italian artist, Bronzino's painting Venus, Cupid and Folly and Time 1546, is an example ofA. Iconography B. Outsider artC. Self expressionD. Original sin A tree was 9 feet tall. One year later, the tree was 16 feet tall. Write an equation and use mental math to find how many feet f the tree grew. What mass of carbon dioxide is produced from the complete combustion of 7.30103 g of methane? 3x - 36 + 2y = 0Help! Please show work and match the algebraic function to the correct graph. Can anyone help !!!?? Animal behavior is based on