Oracle 12c: SQL
Oracle 12c: SQL
3rd Edition
ISBN: 9781305251038
Author: Joan Casteel
Publisher: Cengage Learning
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 3, Problem 16MC

Which of the following commands creates a new table containing two columns?

  1. a. CREATE TABLE newname (coll DATE, col2 VARCHAR2);
  2. b. CREATE TABLE newname AS (SELECT title, retail, cost FROM books);
  3. c. CREATE TABLE newname (col1, co12);
  4. d. CREATE TABLE newname (col1 DATE DEFAULT SYSDATE, co12 VARCHAR2 (1));
Blurred answer
Students have asked these similar questions
Which of the following commands creates a new table containing two columns?a. CREATE TABLE newname (coll DATE, col2 VARCHAR2);b. CREATE TABLE newname AS (SELECT title, retail, cost FROM books);c. CREATE TABLEnewname (coll, col2);d. CREATE TABLE newname (coll DATE DEFAULT SYSDATE, col2 VARCHAR2 (1));
The following table has been created: CREATE TABLE student table ( stud id NUMBER (6), last_name VARCHAR2 (20), first name VARCHAR2 (20), lunch num NUMBER (4) ) ; Which one of the following INSERT statements will fail? O INSERT INTO student table VALUES (143354, 'Roberts', 'Cameron', 6543); O INSERT INTO student_table (stud_id, last_name, lunch_num) VALUES (143354, Roberts, 6543, 'Cameron'); O INSERT INTO student_table (stud_id, last_name, first_name, lunch_num) VALUES (143354, 'Roberts', 'Cameron', 6543); O INSERT INTO student_table (stud_id, lunch_num, first_name, last_name) VALUES (143352, 6543, 'Cameron', 'Roberts');
Which of the following commands changes a table’s name from OLDNAME to NEWNAME?a. RENAME oldname TO newname;b. RENAME table FROM oldname TO newname;c. ALTER TABLE oldname MODIFY TO newname;d. CREATE TABLE newname (SELECT * FROM oldname);

Chapter 3 Solutions

Oracle 12c: SQL

Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
  • Text book image
    Oracle 12c: SQL
    Computer Science
    ISBN:9781305251038
    Author:Joan Casteel
    Publisher:Cengage Learning
Text book image
Oracle 12c: SQL
Computer Science
ISBN:9781305251038
Author:Joan Casteel
Publisher:Cengage Learning
dml in sql with examples; Author: Education 4u;https://www.youtube.com/watch?v=WvOseanUdk4;License: Standard YouTube License, CC-BY