Question

In: Computer Science

QUESTION 1 Which of the following will correctly change the name of the LOCATIONS table to...

QUESTION 1

  1. Which of the following will correctly change the name of the LOCATIONS table to NEW_LOCATIONS?

    ALTER TABLE LOCATIONS RENAME NEW_LOCATIONS

    MODIFY TABLE LOCATIONS RENAME NEW_LOCATIONS

    RENAME LOCATIONS TO NEW_LOCATIONS

    None of the above, you cannot rename a table, you can only CREATE, ALTER and DROP a table.

1 points   

QUESTION 2

  1. The data type of a column can never be changed once it has been created.

    True

    False

1 points   

QUESTION 3

  1. The following code creates a table named student_table with four columns: id, lname, fname, lunch_num CREATE TABLE student_table (id NUMBER(6), lname VARCHAR(20), fname VARCHAR(20), lunch_num NUMBER(4)); The lunch_num column in the above table has been marked as UNUSED. Which of the following is the best statement you can use if you wish to remove the UNUSED column from the student_table?

    DROP column

    ALTER TABLE DELETE UNUSED COLUMNS

    ALTER TABLE DROP UNUSED COLUMNS

    ALTER TABLE DELETE ALL COLUMNS

1 points   

QUESTION 4

  1. After issuing a SET UNUSED command on a column, another column with the same name can be added using an ALTER TABLE statement.

    True

    False

1 points   

QUESTION 5

  1. Comments can be added to a table by using the COMMENT ON TABLE statement. The comments being added are enclosed in:

    Double quotes " "

    Single quotes ' '

    Parentheses ( )

    Brackets { }

1 points   

QUESTION 6

  1. You can use the ALTER TABLE statement to:

    Add a new column

    Modify an existing column

    Drop a column

    All of the above

1 points   

QUESTION 7

  1. ALTER TABLE table_name RENAME can be used to:

    Rename a row

    Rename a column

    Rename a table

    All of the above

1 points   

QUESTION 8

  1. To completely get rid of a table, its contents, its structure, AND release the storage space the keyword is:

    DROP

    DELETE

    TRUNCATE

    KILL

1 points   

QUESTION 9

  1. When should you use the SET UNUSED command?

    Never, there is no SET UNUSED command

    You should use it if you think the column may be needed again later

    You should use it when the system is being heavily used

    You should only use this command if you want the column to still be visible when you DESCRIBE the table

1 points   

QUESTION 10

  1. You can use DROP COLUMN to drop all columns in a table, leaving a table structure with no columns.

    True

    False

Solutions

Expert Solution

The solution is provided below.

Thank you. Happy to help you.


Related Solutions

Question 3 (1 point) Which of the following correctly lists the compounds in order of increasing...
Question 3 (1 point) Which of the following correctly lists the compounds in order of increasing boiling point? Question 3 options: 1) CCl₄(l) < NH₃(l) < N₂(l) 2) N₂(l) < CCl₄(l) < NH₃(l) 3) CCl₄(l) < N₂(l) < NH₃(l) 4) NH₃(l) < N₂(l) < CCl₄(l) 5) NH₃(l) < CCl₄(l) < N₂(l) Question 4 (1 point) Which of the following is true? i. Hydrogen bonding only occurs when hydrogen is bound to oxygen or fluorine. ii. The secondary structures of proteins...
1.Which of the following is a DML operation on table employee? change an employee's stree address...
1.Which of the following is a DML operation on table employee? change an employee's stree address cancel the insertion of 3 new employees in table employee add a column phone2 to table employee to limit the salary amount to be at most $200,000 add a constraint in table employee to limit the salary amount to be at most $200,000
Question 1: Use specimens to fill in the following table. Provide the specimen name(s) that you...
Question 1: Use specimens to fill in the following table. Provide the specimen name(s) that you are using as a reference for each species (Homo species only). For most questions provide a briefdescription of the trait (1-2 sentences at most). For questions that ask about presence of a trait, simply indicate if this trait is present or absent for each species. For some questions, you may find it helpful to rank the trait across the species. I have started a...
Question 1: Use specimens to fill in the following table. Provide the specimen name(s) that you...
Question 1: Use specimens to fill in the following table. Provide the specimen name(s) that you are using as a reference for each species (Homo species only). For most questions provide a briefdescription of the trait (1-2 sentences at most). For questions that ask about presence of a trait, simply indicate if this trait is present or absent for each species. For some questions, you may find it helpful to rank the trait across the species. Chimpanzee H. habilis H....
Question 1: Use specimens to fill in the following table. Provide the specimen name(s) that you...
Question 1: Use specimens to fill in the following table. Provide the specimen name(s) that you are using as a reference for each species (Homo species only). For most questions provide a briefdescription of the trait (1-2 sentences at most). For questions that ask about presence of a trait, simply indicate if this trait is present or absent for each species. For some questions, you may find it helpful to rank the trait across the species. I have started a...
Which of the following correctly describes what happens when an atomic bomb explodes? Question 1 options:...
Which of the following correctly describes what happens when an atomic bomb explodes? Question 1 options: Small pieces of fissionable material are joined and form a body with a mass greater than the critical mass, the relative number of neutrons escaping decreases, and a chain reaction and explosion result. Large pieces of fissionable matter are brought together quickly and form a body with a mass smaller than the critical mass, the relative number of escaping neutrons increases, and a chain...
QUESTION 1 Tick the option which correctly describes the units of parameters defined in an operation...
QUESTION 1 Tick the option which correctly describes the units of parameters defined in an operation sheet? a. Cutting Speed (ft/min), Spindle Speed (rev/min), Feed (in/rev), Depth of Cut(in) b. Cutting Speed (in/min), Spindle Speed (rev/sec), Feed (mm/rev), Depth of Cut(in) c. Cutting Speed (ft/min), Spindle Speed (rev/min), Feed (in/rev), Depth of Cut(mm) d. Cutting Speed (ft/sec), Spindle Speed (rev/min), Feed (mm/rev), Depth of Cut(mm) 10 points    QUESTION 2 What steps are necessary for Process Planning of a job...
Question 1: The following table to answer the following questions.
Question 1: The following table to answer the following questions.  a. Sketch the aggregate supply(s) and aggregate demand diagram(s). b. What is the equilibrium output and price level? c. If aggregate demand shifts right, what is long-run equilibrium output? d. If aggregate demand shifts left, what is equilibrium long-run output? e. For an economy at long-run equilibrium, would you suggest using aggregate demand to alter the level of output or to control any inflationary increases in the price level? Why?
Describe how the heights, widths, and locations of the peaks in the following three situations change...
Describe how the heights, widths, and locations of the peaks in the following three situations change when the optical setup is changed. (the wavelength of incident light does NOT change) Each part of the question should have 3 answers, except for question C which should have 4 answers. A. You have a diffraction pattern caused by a single slit of width a, and you double the slit width. (4 points) a. Central peak Intensity change: b. Central peak width change:...
1)Which of the following would cause a change in supply, as opposed to a change in...
1)Which of the following would cause a change in supply, as opposed to a change in quantity supplied, in the market for purchasing new homes? * A) A decrease in the price of rental housing. B) A decrease in the price of new homes C) An increase in the incomes of home buyers. D) An increase in the number of buyers in the market for used homes. 2)As the price of socks increases, what would reasonably be expected to happen...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT