Question: Task # 2 : Inserting Rows Staff staffNo sName position salary branchNo bAddress SL 2 1 John White Manager 3 0 0 0 0 B
Task #: Inserting Rows
Staff
staffNo sName position salary branchNo bAddress
SL John White Manager B Deer Rd London
SG Ann Beech Assistant B Main St Glasgow
SG David Ford Supervisor B Main St Glasgow
SA Mary Howe Assistant B Argyll St Aberdeen
SG Susan Brand Manager B Main St Glasgow
SL Julie Lee Assistant B Deer Rd London
Which of the following SQL Insert statement adds one employee to the table above? Additionally, explain the rationale on each of the choices on why the SQL statement works or does not work.
INSERT INTO Staff VALUES SAAlanBrownAssistantB Argyll St Aberdeen;
INSERT INTO Staff staffNo sName, branchNo VALUES SAAlan BrownB;
INSERT INTO Staff VALUES SAAlan BrownAssistant NULL, B Argyl Rd Aberdeen;
Task #
Inserting Rows
Staff
staffNo sName position salary branchNo bAddress
SL John White Manager B Deer Rd London
SG Ann Beech Assistant B Main St Glasgow
SG David Ford Supervisor B Main St Glasgow
SA Mary Howe Assistant B Argyll St Aberdeen
SG Susan Brand Manager B Main St Glasgow
SL Julie Lee Assistant B Deer Rd London
Which of the following SQL Insert statement adds one employee to the table above?
INSERT INTO Staff VALUES SAAlanBrownAssistantB Argyll St Aberdeen;
INSERT INTO Staff staffNo sName, branchNo VALUES SAAlan BrownB;
INSERT INTO Staff VALUES SAAlan BrownAssistant NULL, B Argyl Rd Aberdeen;
Task #
Inserting Rows
Staff
staffNo sName position salary branchNo bAddress
SL John White Manager B Deer Rd London
SG Ann Beech Assistant B Main St Glasgow
SG David Ford Supervisor B Main St Glasgow
SA Mary Howe Assistant B Argyll St Aberdeen
SG Susan Brand Manager B Main St Glasgow
SL Julie Lee Assistant B Deer Rd London
Based on a close reading of the choices for Task # name one anomaly mistake that could rise when inserting records?
Task #: Updating Rows
Staff
staffNo sName position salary branchNo bAddress
SL John White Manager B Deer Rd London
SG Ann Beech Assistant B Main St Glasgow
SG David Ford Supervisor B Main St Glasgow
SA Mary Howe Assistant B Argyll St Aberdeen
SG Susan Brand Manager B Main St Glasgow
SL Julie Lee Assistant B Deer Rd London
Which of the following SQL statement properly adjusts an in the table above?
UPDATE Staff SET bAddress Post Rd Glasgow WHERE staffNo SG;
UPDATE Staff SET bAddress Post Rd Glasgow;
UPDATE Staff SET bAddress Post Rd Glasgow WHERE branchNo B;
Task #
Updating Rows
Staff
staffNo sName position salary branchNo bAddress
SL John White Manager B Deer Rd London
SG Ann Beech Assistant B Main St Glasgow
SG David Ford Supervisor B Main St Glasgow
SA Mary Howe Assistant B Argyll St Aberdeen
SG Susan Brand Manager B Main St Glasgow
SL Julie Lee Assistant B Deer Rd London
Based on a close reading of the choices in Task # name one anomaly mistake that could rise when updating records?
Task #
Deleting Rows
Staff
staffNo sName position salary branchNo bAddress
SL John White Manager B Deer Rd London
SG Ann Beech Assistant B Main St Glasgow
SG David Ford Supervisor B Main St Glasgow
SA Mary Howe Assistant B Argyll St Aberdeen
SG Susan Brand Manager B Main St Glasgow
SL Julie Lee Assistant B Deer Rd London
Which of the following SQL statement properly deletes a staff record. Additionally explain the rationale for each of the choices correct and wrong ones
DELETE FROM Staff WHERE staffNo SA;
DELETE FROM Staff;
DELETE FROM Staff WHERE position Assistant;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
