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

Concept explainers

bartleby

Videos

Textbook Question
100%
Book Icon
Chapter 3, Problem 6MC

Which of the following commands creates a new table containing a virtual column?

  1. a. CREATE TABLE newt able AS (SELECT order#, title, quantity, retail FROM orders);
  2. b. CREATE TABLE newt able (price NUMBER (3), total NUMBER (8, 2));
  3. c. CREATE TABLE newt able (calc1 NUMBER (4), calc2 NUMBER (4);
  4. d. CREATE TABLE newt able (cola NUMBER (3), colb NUMBER (3),

    cole AS (cola+colb));

Blurred answer
Students have asked these similar questions
Which of the following is true? (refer to the tables in the JustLee Books database)a. If you truncate a table, you can’t add new data to the table.b. If you change the default value of an existing column, all existing rows containing a NULL value in the same column are set to the new DEFAULT value.c. If you delete a column from a table, you can’t add a column to the table with the same name as the previously deleted column.d. If you add a column to an existing table, it’s always added as the last column of the table.
with it, paste your code in a text file named Student.txt and save it in your task folder. Write the SQL code to create a table called Student. The table structure is summarised in the table below (Note that STU_NUM is the primary key): STU_NUM Attribute Name STU_SNAME STU_FNAME STU_INITIAL STU_STARTDATE COURSE_CODE PROJ_NUM STU STU_S STU_F STU_INITIAL NUM NAME NAME 01 02 Snow John E CHAR(6) After you have created the table in question 1, write the SQL code to enter the first two rows of the table as below: Stark Arya с VARCHAR(15) VARCHAR(15) CHAR(1) DATE CHAR(3) INT(2) Data Type STU_STARTDATE COURSE_ PROJ_ CODE NUM 05-Apr-14 12-Jul-17 201 305 6 11 Assuming all the data in the Student table has been entered as shown below, write the SQL code that will list all attributes for a COURSE_CODE of 305.
Which of the following statements would add a column job of type varchar 2 and size 20 to the already created Exhibition table? a. ALTER TABLE Exhibition add (job varchar2(20)); 1 b. ALTER TABLE Exhibition add column (job varchar2(20)); O c. ALTER TABLE Exhibition add job varchar2(20); O d. ALTER TABLE Exhibition add column (job); For a variable having value as str='BABY', what is the value of the function initcap(str) ? а. ВАBY b. Baby O . BABY O d. baby For name='Daniel, what is the output of the function rpad(name,8,'$') ? O a. Daniel 3 O b. $$Daniel O c. $$$$$$$$ O d. Daniel$$

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
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Text book image
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
Text book image
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
dml in sql with examples; Author: Education 4u;https://www.youtube.com/watch?v=WvOseanUdk4;License: Standard YouTube License, CC-BY