A Guide to SQL
A Guide to SQL
9th Edition
ISBN: 9781111527273
Author: Philip J. Pratt
Publisher: Course Technology Ptr
bartleby

Concept explainers

Question
Book Icon
Chapter 5, Problem 14TD
Program Plan Intro

WHERE Statement:

“WHERE” statement is used limit the number of rows. For example:Consider a table “FTable” that has two columns named “FruitName” and “Color”. “WHERE” clause is used when there is a need to display the entire FruitName whose color is Red.

SELECT * FROM FTable WHERE color = 'red';

When the above statement is executed, red colored fruits get displayed.

Blurred answer
Students have asked these similar questions
Find the names of the pilots who are not certified to fly the aircrafts in the flight table. Sort the name by ascending order.
List the order number and order date for every order that was placed by Mary Nelson and that             contains an order line for an iron. Use an INTERSECT operator.   table name is:ORDER_LINEORLN_ORDER_NUMBER    ORLN_PART_NUMBER ORLN_NUMBER_ORDERED    ORLN_QUOTED_PRICE   tablename is ORDER_TABLE ORDR_ORDER_NUMBER    ORDR_ORDER_DATE            ORDR_CUSTOMER_NUMBER tablename is CUSTOMER CUST_NUMBERCUST_LAST    CUST_FIRST    CUST_STREET    CUST_CITY    CUST_STATE    CUST_ZIP_CODE    CUST_BALANCE    CUST_CREDIT_LIMIT    CUST_SALES_REP_NUM tablename is PART PART_NUMBER    PART_DESCRIPTION    UNITS_ON_HAND    ITEM_CLASS    WAREHOUSE    UNIT_PRICE tablename is SALES_REP SLSR_PKSLSR_LAST    SLSR_FIRST    SLSR_STREET    SLSR_CITY    SLSR_STATE    SLSR_ZIP_CODE    SLSR_TOTAL_COMMISSION    SLSR_COMMISSION_RATE   SELECT ORDR_ORDER_NUMBER, ORDR_ORDER_DATEFROM ORDER_TABLEWHERE ORDR_ORDER_NUMBER IN (SELECT ORLN_ORDER_NUMBERFROM ORDER_LINEWHERE ORLN_PART_NUMBER IN (SELECT PART_NUMBERFROM PARTWHERE…
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.
Recommended textbooks for you
  • Text book image
    A Guide to SQL
    Computer Science
    ISBN:9781111527273
    Author:Philip J. Pratt
    Publisher:Course Technology Ptr
    Text book image
    Oracle 12c: SQL
    Computer Science
    ISBN:9781305251038
    Author:Joan Casteel
    Publisher:Cengage Learning
Text book image
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
Text book image
Oracle 12c: SQL
Computer Science
ISBN:9781305251038
Author:Joan Casteel
Publisher:Cengage Learning