Oracle 12c: SQL
3rd Edition
ISBN: 9781305251038
Author: Joan Casteel
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 2, Problem 14MC
Which of the following lines of the SELECT statement contains an error?
1 SELECT ISBN,
2 retail-cost
3 FROM books;
- a. line 1
- b. line 2
- c. line 3
- d. There are no errors.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
SID
SNAME
STYPE
LOCATION
1
Lulu
DS
Salalah
2
C4
DS
Saadah
3
Smile
WS
Awqad
PRODUCTS
PID
DESC
PRICE
SID
QTY
801
Pencil
3
1
10
802
A4
6
2
15
803
Ballpen
4
2
804
Marker
2
3
20
Display the PID and average prices from the PRODUCTS table which price is less than the average price of all the products. (use subquery)
Choose the SELECT statement that returns the given results from the
Auto table below.
ID Make
Model
Type
Year Price
1
Toyota
Camry
sedan
2016 9800
2
Ford
Escape
crossover 2015 15900
3
Honda
Civic
sedan
2016 10200
4
Volkswagen Golf
compact 2014 8800
5
Toyota
RAV4
crossover 2016 12800
6
Toyota
4Runner suv
2015 16900
7
Honda
CR-V
crossover 2016 17900
Result :
Honda 2
Toyota 3
Select Make, Count(Make) FROM Auto Group By Make;
Select Make, COUNT(Make) From Auto Group By Make Having Count(Make) >
1;
Select Make, Count(Make) From Auto Group By Make Having COUNT >1;
WEEK 9 ASSIGNMENT#6
Part II:
Complete the following exercise:
Using a subquery, select student first name where the student is in the student course table.
Using a subquery, select the course id where the average GPA is 2.
Using a subquery, select the course id where the average GPA is greater than 2.
Using a subquery, select student first name where the student is not in the student course t
Chapter 2 Solutions
Oracle 12c: SQL
Ch. 2 - Prob. 1RQCh. 2 - What are the two required clauses for a SELECT...Ch. 2 - What is the purpose of the SELECT statement?
Ch. 2 - What does an asterisk () in the SELECT clause of a...Ch. 2 - What is the purpose of a column alias?Ch. 2 - How do you indicate that a column alias should be...Ch. 2 - When is it appropriate to use a column alias?
Ch. 2 - What are the guidelines to keep in mind when using...Ch. 2 - Prob. 9RQCh. 2 - What is a NULL value?
Ch. 2 - Which of the following SELECT statements displays...Ch. 2 - Which clause is required in a SELECT...Ch. 2 - Which of the following is not a valid SELECT...Ch. 2 - Which of the following symbols represents...Ch. 2 - Prob. 5MCCh. 2 - Prob. 6MCCh. 2 - Which of the following is a valid SELECT...Ch. 2 - Which of the following symbols is used in a SELECT...Ch. 2 - Prob. 9MCCh. 2 - When must a comma be used in the SELECT clause of...Ch. 2 - Prob. 11MCCh. 2 - Which clause is not required in a SELECT...Ch. 2 - Which of the following lines of the SELECT...Ch. 2 - Which of the following lines of the SELECT...Ch. 2 - Which of the following lines of the SELECT...Ch. 2 - Which of the following lines of the SELECT...Ch. 2 - Which of the following lines of the SELECT...Ch. 2 - Which of the following lines of the SELECT...Ch. 2 - Which of the following lines of the SELECT...Ch. 2 - Which of the following lines of the SELECT...Ch. 2 - Prob. 1HOACh. 2 - Prob. 2HOACh. 2 - Prob. 3HOACh. 2 - Prob. 4HOACh. 2 - Prob. 5HOACh. 2 - Prob. 6HOACh. 2 - Prob. 7HOACh. 2 - Create a list of each book title stored in the...Ch. 2 - Prob. 9HOACh. 2 - List all information for each order item. Include...
Knowledge Booster
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
- Which of the following lines of the SELECT statement contains an error? 1 SELECT ISBN, || 'is the ISBN for the book named' || 2 title 3 FROM books; line 1 line 2 line 3 There are no errors.arrow_forwardWhich of the following lines of the SELECT statement contains an error? 1 SELECT name, contact 2 "Person to Call", phone 3 FROM publisher; a. line 1 b. line 2 c. line 3 d. There are no errors.arrow_forwardWhich of the following lines of the SELECT statement contains an error? 1 SELECT * 2 FROM publishers; line 1 line 2 There are no errors.arrow_forward
- Which of the following lines of the SELECT statement contains an error? 1 SELECT title, isbn, 2 Pubdate "Date of Publication" 3 FROM books; a. line 1 b. line 2 c. line 3 d. There are no errors.arrow_forwardWhich of the following lines of the SELECT statement contains an error? 1 SELECT title, category 2 FORM books; line 1 line 2 There are no errors.arrow_forwardWhich of the following lines of the SELECT statement contains an error? 1 SELECT title, cost, 2 cost2 3 'With 200% Markup' 4 FROM books; a. line 1 b. line 2 c. line 3 d. line 4 e. There are no errors.arrow_forward
- How do you indicate that a column alias should be used?arrow_forwardThe Book table has the following columns: ID Title Author Genre Year Price Complete the SELECT statement to select the year and the average price of books for that year. SELECT *Type your code here */ FROM Book GROUP BY Pickarrow_forwardThe Book table has the following columns: ID Title Author Genre Year Price Complete the SELECT statement to select the genre and the total number of books for that genre. SELECT /* Type your code here */ FROM Book GROUP BY Pick ✓arrow_forward
- Please help with the following: Which column name is valid? Select one: a. NUMBER_1$ b. NUMBER c. 1_NUMBER# d. 1NUMBERarrow_forwardIn which normal form no column should depend on other columns? You must select at least 1 choice O First normal form. O Second normal form. O Third normal form. O Fourth normal form O Fifth normal form.arrow_forwardWhich clause do you add to the following SELECT statement to limit the display to those categories that their total price is out of the range 5000 to 7000 (We also do not want to include 5000 and 7000 in the result)? SELECT catergoty_id, SUM(price) FROM products GROUP BY catergoty_id O a. HAVING SUM(price) 7000 O b. HAVING SUM(price) > 5000 and SUM(price) 7000 O d. WHERE SUM(price) > 5000 and SUM(price) < 7000arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- A Guide to SQLComputer ScienceISBN:9781111527273Author:Philip J. PrattPublisher:Course Technology PtrCOMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:CengageProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
How to Design DB Tables for any Application? (The Basics); Author: Studytonight;https://www.youtube.com/watch?v=XUdNVaSikqY;License: Standard YouTube License, CC-BY
Create a Table (Introduction to Oracle SQL); Author: Database Star;https://www.youtube.com/watch?v=BiV1IrzB1sY;License: Standard Youtube License