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

Concept explainers

bartleby

Videos

Students have asked these similar questions
Which one of the following SQL statements produces the same result asselect time_of_day_hour, time_of_day_minute, time_of_day_secondfrom time_of_daywhere time_of_day_hour BETWEEN 2 and 8;   Question 1 options:   1)  select time_of_day_hour, time_of_day_minute, time_of_day_secondfrom time_of_daywhere time_of_day_hour >= 2 and time_of_day_hour <= 8;   2)  select time_of_day_hour, time_of_day_minute, time_of_day_secondfrom time_of_daywhere time_of_day_hour > 2 and time_of_day_hour < 8;   3)  select time_of_day_hour, time_of_day_minute, time_of_day_secondfrom time_of_daywhere (2 <= time_of_day_hour <= 8);   4)  select time_of_day_hour, time_of_day_minute, time_of_day_secondfrom time_of_daywhere time_of_day_hour > 2 and <8;
Which of the following is a valid SQL statement? (refer to the tables in the JustLee Books database.)a. SELECT customer#, order#, MAX(shipdate-orderdate)FROM ordersGROUP BY customer#WHERE customer# = 1001;b. SELECT customer#, COUNT(order#)FROM ordersGROUP BY customer#;c. SELECT customer#, COUNT(order#)FROM ordersGROUP BY COUNT(order#);d. SELECT customer#, COUNT(order#)FROM ordersGROUP BY order#;
Which of the following SQL statements is invalid and returns an error message? ( refer to the tables in the JustLee Books database). a. ALTER TABLE books ADD CONSTRAINT books_pubid_uk UNIQUE (pubid);  b. ALTER TABLE books ADD CONSTRAINT books_pubid_pk PRIMARY KEY (pubid);                                                                                                                c. ALTER TABLE books ADD CONSTRAINT books_pubid_nn NOT NULL (pubid); d. ALTER TABLE books ADD CONSTRAINT books_pubid_fk FOREIGN KEY (pubid) REFERENCES publisher (pubid); e. All of the above statements are invalid
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
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