Question

In: Computer Science

1.Which of the following is a DML operation on table employee? change an employee's stree address...

1.Which of the following is a DML operation on table employee?

change an employee's stree address

cancel the insertion of 3 new employees in table employee

add a column phone2 to table employee to limit the salary amount to be at most $200,000

add a constraint in table employee to limit the salary amount to be at most $200,000

Solutions

Expert Solution

The correct DML operation is "change an employee's street address". DML stands for Data Manipulation Language. The basic operations as part of DML include INSERT, UPDATE, DELETE. All these 3 operations manage the data stored in the table.

The INSERT will add 1 or more records to the table.

The UPDATE will change the already existing data in a column in the table. In this case the employee’s street address is changed which can be achieved using an UPDATE statement.

The DELETE will remove the already existing records from the table.

Since changing the employee address falls into the UPDATE statement that is the correct DML operation on the table Employee.

Explanation on incorrect options.

Cancelling the Insert operation of 3 new employees can be achieved using transaction and rollback statements. This does not fall into the INSERT, UPDATE and DELETE. Also this operation is not managing or altering anything on the table.

Adding a column “phone2” is an example of DDL statements. And that means that the table structure is modified using this statement and not the data that resides in the table. Hence this is not a DML operation.

Adding a constraint in the Employee table is about putting a check to limit the salary amount. It’s not in anyways falls into the category of altering the data inside the table. So this is also not a DML operation.


Related Solutions

in which section of the edit employee screen do you change an employee's status terminate?
in which section of the edit employee screen do you change an employee's status terminate?
Question 1 – Inserting data to the CITY table Using the following DML statement: INSERT INTO...
Question 1 – Inserting data to the CITY table Using the following DML statement: INSERT INTO CITY (id, name, countrycode, district, population) VALUES (7000, ‘Guelph’, ‘CAN’, ‘Ontario’, 131794); Query the CITY table to ensure this row was inserted correctly. Provide screenshot of your ‘SELECT statement’ and resultset pane here                Insert another row into the CITY table with the following values:                               Id                           7002                               Name                   Montebello                               Countrycode       CAN                               District                 Quebec                               Population          983 Provide screenshot...
QUESTION 1 Which of the following will correctly change the name of the LOCATIONS table to...
QUESTION 1 Which of the following will correctly change the name of the LOCATIONS table to NEW_LOCATIONS? ALTER TABLE LOCATIONS RENAME NEW_LOCATIONS MODIFY TABLE LOCATIONS RENAME NEW_LOCATIONS RENAME LOCATIONS TO NEW_LOCATIONS None of the above, you cannot rename a table, you can only CREATE, ALTER and DROP a table. 1 points    QUESTION 2 The data type of a column can never be changed once it has been created. True False 1 points    QUESTION 3 The following code creates...
Which of the following statements is true? Employers are not concerned with determining a potential employee's...
Which of the following statements is true? Employers are not concerned with determining a potential employee's productivity because they know that with experience the employee's output will increase. Employers are not concerned with determining a potential employee's productivity because they realize that they cannot accurately determine it beforehand. Employers are not concerned with determining a potential employee's productivity because they know that they can train the employee after he's hired. Employers are concerned with determining a potential employee's productivity due...
Which of the following is a... Which of the following is a way to address some...
Which of the following is a... Which of the following is a way to address some of the shortcomings of specialization? Multiple Choice  Each employee further develops his/her area of specialization. Each employee brings his/her own equipment or tools to work  Each employee is assigned to a team to perform a job.  Each employee takes care of one activity only.
1)Which of the following would cause a change in supply, as opposed to a change in...
1)Which of the following would cause a change in supply, as opposed to a change in quantity supplied, in the market for purchasing new homes? * A) A decrease in the price of rental housing. B) A decrease in the price of new homes C) An increase in the incomes of home buyers. D) An increase in the number of buyers in the market for used homes. 2)As the price of socks increases, what would reasonably be expected to happen...
Question 1: Part 1 Write SQL statements for the following queries from the ‘EMPLOYEE’ table in...
Question 1: Part 1 Write SQL statements for the following queries from the ‘EMPLOYEE’ table in the WPC Database in MySQL: Display all records from the Employee table for employees working in the “Marketing” department. Display all records from the Employee table for employees working in the “Marketing” department OR “Finance” Department. Display the Last Names of all employees such that each last name appears only once. Display all the attributes for employees whose employee number is less than 10....
1. Which of the following are likely to be the most valuable employee benefits for a...
1. Which of the following are likely to be the most valuable employee benefits for a 30-year-old divorced woman with two dependent children? Select any three. company gym health insurance child care retirement plan catastrophic health insurance long-term-care insurance 2. Assuming that you take _________ and the cost of medical insurance is the same if you buy it on your own or receive it through your employer, it would typically be ________ to buy $4,000 in medical benefits through payroll...
Consider the following IPv4 forwarding table, using CIDR. As in exercise 1, IP address bytes are...
Consider the following IPv4 forwarding table, using CIDR. As in exercise 1, IP address bytes are in hexadecimal, and “:” is used as the separator as a reminder. destination next_hop 00:0:0:0/2 A 40:0:0:0/2 B 80:0:0:0/2 C c0:0:0:0/2 D (a). To what next_hop would each of the following be routed? 63:b1:82:15, 9e:00:15:01, de:ad:be:ef (b). Explain why every IP address is routed somewhere, even though there is no default entry. Hint: convert the first bytes to binary
1. Which of the following is a common way in which genes in a population change?...
1. Which of the following is a common way in which genes in a population change? A) injury B) aging C) sexual reproduction D) natural selection 2. The Drake equation estimates the: A) number of planets hosting life in the Milky Way. B) number of technologically advanced civilizations in the Milky Way. C) likelihood of observing a signature of life around a star. D) likelihood of observing a radio signal from an extraterrestrial civilization. 3. Of the following, which is...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT