Week 9 Flashcards
Creating/Modifying Tables
What language is used to create and modify tables?
A. data design language (ddl)
B. data information language (dil)
C. data definition language (ddl)
D. simple query language (sql)
C. data definition language (ddl)
A variable length character data. the (n) is the maximum length.
A. VARCHAR2(n)
B. CHAR(n)
C.CHAR2(n)
D. NUMBER(n)
A. VARCHAR2(n)
A fixed length character folumn. The (n) is the column length.
A. VARCHAR2(n)
B. CHAR(n)
C.CHAR2(n)
D. NUMBER(n)
B. CHAR(n)
The p in NUMBER(p,s) stands for what? Select all that apply.
A. Precision
B. Percent
C. total number of digits
D. digits only to the left of the decimal
A. Precision
C. total number of digits
The type of data Oracle12C is expected to store in a column is called what?
datatype
How many columns can a table contain?
A. 100
B. 1000
C. 10000
D. none of the above
B. 1000
True/False: When creating a table, columns should be enclosed in parenthesis.
True
When creating a table, the columns must have what after the name to define them?
A. datatype
B. datafield
C. datadefinition
D. None of the above
A. datatype
What command do you use to add rows after a table is created?
A. ADD
B. INSERT
C. CREATE RECORD
B. INSERT
To view the stRucture of a table, what command do you use?
A. SHOW SCHEMA
B. DETAILS
C. DESCRIBE
C. DESCRIBE
Choose the correct syntax for creating a table.
A. CREATE TABLE test
(ID CHAR(4)
name VARCHAR2(15)
bday DATE DEFAULT SYSDATE);
B. CREATE TABLE test
(ID CHAR(4),
name VARCHAR2(15),
bday DATE DEFAULT SYSDATE)
C. CREATE TABLE test
(ID CHAR(4),
name VARCHAR2(15),
bday DATE DEFAULT SYSDATE;
D. CREATE TABLE test
(ID CHAR(4),
name VARCHAR2(15),
bday DATE DEFAULT SYSDATE);
D. CREATE TABLE test
(ID CHAR(4),
name VARCHAR2(15),
bday DATE DEFAULT SYSDATE);
The _____ data dictionary object maintains information on all your tables. Use it to show all the tables in your schema.
A. TABLES_DATA
B. USER_TABLES
C. USER_DATA
D. TABLES_USER
B. USER_TABLES
The ___ TABLE command is used to modify tables.
A. ALTER
B. CHANGE
C. MODIFY
A. ALTER
Using the ALTER TABLE ADD does what?
Adds a column
To change the column definition after it’s already been created what syntax do you use?
A. ALTER TABLE CHANGE
B. ALTER TABLE FIX
C. ALTER TABLE MODIFY
C. ALTER TABLE MODIFY