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 4MC

Which of the following is not a valid SQL statement?

  1. a. CREATE TABLE anothernewtable (newtableid VARCHAR2 (2));
  2. b. CREATE TABLE anothernewtable (date, anotherdate)

    AS (SELECT orderdate, shipdate FROM orders);

  3. c. CREATE TABLE anothernewtable (firstdate, seconddate)

    AS (SELECT orderdate, shipdate FROM orders);

  4. d. All of the above are valid statements.
Blurred answer
Students have asked these similar questions
Which of the following is not a valid SQL statement? (refer to the tables in the JustLee Books database.)a. SELECT MIN(pubdate)FROM booksGROUP BY categoryHAVING pubid = 4;b. SELECT MIN(pubdate)FROM booksWHERE category = 'COOKING';c. SELECT COUNT(*)FROM ordersWHERE customer# = 1005;d. SELECT MAX(COUNT(customer#))FROM ordersGROUP BY customer#;
INFO 2303   Database Programming Assignment # : PL/SQL Procedure & Function Practice   Note: PL/SQL can be executed in SQL*Plus or SQL Developer or Oracle Live SQL.   Write a script to create a PL/SQL procedure called findSal that displays the doctor’s salary and bonus after passing in the doc_id into the procedure. For example, if you pass in doc_id 504, you will get the following output.   execute findSal(504)   The salary for Dr.Cotner (504) is: 11500 The bonus is: 7500     PL/SQL procedure successfully completed.
Create a function name BALANCE that returns the status of outstanding amount for each customer. Use the following criteria for your function: Outstanding_amt less than 5000 , returns ‘SMALL AMOUNT’ Outstanding_amt between 5000 and 10000 , returns ‘AVERAGE AMOUNT’ Outstanding_amt greater than 10000 , returns ‘LARGE AMOUNT’ Use function BALANCE in your SQL statements that display the cust_code, cust_name, Outstanding_amt and function BALANCE.

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
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
dml in sql with examples; Author: Education 4u;https://www.youtube.com/watch?v=WvOseanUdk4;License: Standard YouTube License, CC-BY