Q3

.pdf

School

Georgia Gwinnett College *

*We aren’t endorsed by this school

Course

4200

Subject

Computer Science

Date

Feb 20, 2024

Type

pdf

Pages

6

Uploaded by jam_1415

Report
1/14/2021 : Quiz Submissions - QUIZ BOWL CHAPTER 3 - Advanced Databases Section 01 Fall 2020 CO - Georgia Gwinnett College Quiz Submissions - QUIZ BOWL CHAPTER 3 X Jamaima Endres (username: jendres) Attempt 6 Written: Jan 12, 2021 1:20 PM - Jan 12, 2021 1:27 PM Submission View Your quiz has been submitted successfully. Question 1 2 / 2 points Consider the ADDRESS table that has the following 3 columns and no rows: ID NUMBER NOT NULL, ZONE NUMBER, ZIP_CODE VARCHAR2(5) COMMIT; INSERT INTO ADDRESS VALUES (1, 1, '94506'); SAVEPOINT ZONE_ADDRESS_1; UPDATE ADDRESS SET ZONE = 2 WHERE ZIP_CODE ='94506'; ROLLBACK; ADDRESS will have 1 row with a value of 1 for ZONE. ADDRESS will have 1 row with a value of 2 for ZONE. v the ADDRESS table will have no rows. The statements will generate a syntax error. D View Feedback Question 2 2 / 2 points If a table T3 has four numeric columns (A, B, C, D) and no primary key, which of these statements will succeed? Choose all that apply. v LINSERT INTO T3 VALUES (3, 6, 7, NULL); v/l INSERT INTO T3 VALUES ('3} '9, 10, '12"); https://ggc.view.usg.edu/d2l/Ims/quizzing/user/quiz_submissions_attempt.d21?isprv=&qi=2465969&ai=34550292&isInPopup=0&cfql=0&fromQB=0&ou... 1/6
1/14/2021 : Quiz Submissions - QUIZ BOWL CHAPTER 3 - Advanced Databases Section 01 Fall 2020 CO - Georgia Gwinnett College V[ ] INSERT INTO T3 SELECT * FROM T3; v NONE OF THESE INSERT STATEMENTS WILL SUCCEED. D View Feedback Question 3 2 / 2 points What is the result of: UPDATE cruises SET cruise_name = 'Bahamas', SET start_date = SYSDATE WHERE cruise _id = 1; An error will occur because two columns cannot be updated with one UPDATE For the first record in the CRUISES table whose cruise_id is 1, cruise_name will be set to '‘Bahamas' and start_date will be set to the current date v For the all records in the CRUISES table whose cruise_id is 1, cruise_name will be set to '‘Bahamas' and start_date will be set to the current date For the all records in the CRUISES table whose cruise_id is 1, cruise_name will be set to '‘Bahamas' and start_date will be set to the current date, as long as their original values were not NULL D View Feedback Question 4 0 / 2 points Which of these commands will remove every row in a table, but not delete the table itself? Choose one or more answers. = 3% (| | ADELETE command with no WHERE clause v A DROP TABLE command = I I ATRUNCATE command ) 4 UPDATE command, setting every column to NULL with no WHERE clause. https://ggc.view.usg.edu/d2l/Ims/quizzing/user/quiz_submissions_attempt.d21?isprv=&qi=2465969&ai=34550292&isInPopup=0&cfql=0&fromQB=0&ou... 2/6
1/14/2021 : Quiz Submissions - QUIZ BOWL CHAPTER 3 - Advanced Databases Section 01 Fall 2020 CO - Georgia Gwinnett College D View Feedback Question 5 2 / 2 points CREATE TABLE STUDENT_LIST (STUDENT_ID NUMBER, STUDENT_NAME VARCHAR2(30), STUDENT_PHONE VARCHAR2(20)); INSERT INTO STUDENT_LIST VALUES (1, Joe Wookie', 3185551212); The table will create succesfully. What will result from the INSERT statement execution? It will fail because there is no column listing It will fail because the value for STUDENT_PHONE is numeric, and STUDENT_PHONE is a character datatype. v It will execute and the table will contain one row of data. It will fail because no primary key has been specified for the table. D View Feedback Question 6 2 / 2 points A user named SALLY updates some rows, and asks another user MELVIN to login and check the changes before she commits them. Which of the following statements is true about this situation? (Choose the best answer.) MELVIN can see SALLY's changes but cannot alter them until SALLY commits. v MELVIN cannot see SALLY's updates because she has not entered the COMMIT command. SALLY must commit the updates, so that MELVIN can view them, and if necessary roll them back. SALLY must commit the updates, so that MELVIN can view them, but only SALLY can roll them back. D View Feedback https://ggc.view.usg.edu/d2l/Ims/quizzing/user/quiz_submissions_attempt.d21?isprv=&qi=2465969&ai=34550292&isInPopup=0&cfql=0&fromQB=0&ou...
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help