Silversleaves
E info@silversleaves.com
T +44 121 288 2824
  • Website Design
  •  ·
  • Commercial Photography

  • Database Development
  •  ·
  • Business Intelligence
  • Home
  • Silversleaves
    • Services
    • Portfolio
  • Web
    • CSS
      • Sticky Footer
      • CSS3 Opacity
    • Firefox Addons
      • DGSCheck
  • Database
    • Oracle Certification
      • SQL Fundamentals I - Part 1
        • Introduction
        • Relational Theory
        • DESCRIBE
      • SQL Fundamentals I - Part 2
        • SQL Operators & Expressions
        • WHERE
        • ORDER BY
        • Ampersand Substitution
      • SQL Fundamentals I - Part 3
        • Single Row Functions
        • Conversion Functions
        • Group Functions
      • SQL Fundamentals I - Part 4
        • Joining Tables
        • Subqueries
        • Set Operators
        • DML
        • Transactions
      • SQL Fundamentals I - Part 5
        • Manipulating Tables
        • Schema Objects
  • Business Intelligence
    • Coming Soon
  • Photography
    • Food
      • Sweet
      • Savory
    • Drink
      • Liquids
    • Interior
      • Hotel
  • Graphic Design
    • Branding
      • Logos
    • Print
      • Poster
      • Brochure
      • Advert
  • Partners
    • Élite Hotels, Turkey
    • Terzioğlu İnsaat, Turkey
  • Blog

Oracle Certification - SQL Fundamentals I - WHERE Clause

  • WHERE
  • Numeric
  • Character
  • Date
  • LIKE
  • Boolean
  • Conclusion

The WHERE Clause

The WHERE clause allows the rows returned by the SELECT statement to be restricted, based on one or more conditions.

Conditional clauses in the exam tend to focus on syntactical errors, so pay close attention to quotations marks et cetera.

Numeric Conditions

Note that conditions with incorrect data-types are automatically cast, i.e.

Character Based Conditions

Character based conditions must be enclosed in single quotes:

Date Based Conditions

These mostly focus on the DD-MON-RR date format, i.e. for RR between 50-99 Oracle assumes he previous century.

LIKE

The like operator uses two wild-card characters, _ (underscore) for a single wild-card character, and the % (percent) for zero of more wild-card characters. There is also the possibility of using the ESCAPE identifier to specify a character that proceeds escaped characters.

Boolean Operators

AND. OR and NOT. They act exactly as you would expect. The distinction between boolean and conditional clauses is important for the exam.

There is going to close attention paid to all of these operators, both on their syntax and operation.

Next up is The ORDER BY Clause.

<< Previous Topic
Next Topic >>
© Silversleaves Limited 2012