What would happen if the following statements were run:
insert into employee_tbl ('JACKSON', 'STEVE', '313546078', '3178523443'),
insert into employee_tbl values ('JACKSON', 'STEVE', '313546078', '3178523443'),
insert into employee_tbl values ('MILLER', 'DANIEL', '230980012', NULL);
insert into employee_tbl values ('TAYLOR', NULL, '445761212', '3179221331'),
delete from employee_tbl;
delete from employee_tbl; where last_name = 'SMITH';
delete from employee_tbl; where last_name = 'SMITH'; and first_name = 'JOHN';
update employee_tbl set last_name = 'CONRAD';
update employee_tbl set last_name = 'CONRAD'; where last_name = 'SMITH';
update employee_tbl set last_name = 'CONRAD'; first_name = 'LARRY';
update employee_tbl set last_name = 'CONRAD'; first_name = 'LARRY'; where ssn = '313546078'
The INSERT statement would not run because the key word VALUES is missing in the syntax.
One row would be inserted into the EMPLOYEE_TBL.
One row would be inserted into the EMPLOYEE_TBL, with a NULL value in the PHONE column.
The INSERT statement would not process because the FIRST_NAME column is NOT NULL.
All rows in the EMPLOYEE_TBL would be deleted.
All employees with the last name of SMITH would be deleted from the EMPLOYEE_TBL.
Only JOHN SMITH would be deleted from the EMPLOYEE_TBL.
All last names would be changed to CONRAD.
Both JOHN and SUE SMITH would now be JOHN and SUE CONRAD.
All employees are now LARRY CONRAD.
JOHN SMITH is now LARRY CONRAD.
Write DML to accomplish the following:
Change Billy Pierce's SSN to 310239857.
Add Ben Moore to the EMPLOYEE_TBL, PHONE_NUMBER is 317-564-9880, SSN = 313456789.
John Smith quit; remove his record.
UPDATE EMPLOYEE_TBL SET SSN = '310239857' WHERE SSN = '310239856';
INSERT INTO EMPLOYEE_TBL VALUES ('MOORE', 'BEN', '313456789', '3175649880'),
DELETE FROM EMPLOYEE_TBL WHERE SSN = '312456788';