Database Articles
  Home arrow Database Articles arrow Power Selecting
Moblin
Try It Free
Codewalker Forums 
  Tutorials  
Database Articles  
Miscellaneous  
Navigation Usability  
PEAR Articles  
Programming Basics  
Server Administration  
XML Tutorials  
  Reviews  
Database Book Reviews  
Linux Book Reviews  
Miscellaneous Reviews  
PHP Book Reviews  
PHP Software Reviews  
Server Admin Reviews  
SQL Tool Reviews  
  Code Gallery  
Content Management Code  
Contest Code  
Counters Code  
Database Code  
Date Time Code  
Discussion Board Code  
Email Code  
File Manipulation Code  
GUI Code  
Link Farm Code  
Miscellaneous Code  
Search Code  
Site Navigation Code  
User Management Code  
Forums Sitemap 
Dedicated Servers  
Download TestComplete 
JMSL Numerical Library 
IBM® developerWorks
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
DATABASE ARTICLES

Power Selecting
By: bluephoenix
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2004-12-20

    Table of Contents:
  • Power Selecting
  • Order By
  • Distinct
  • As
  • Like
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!

    Power Selecting


    (Page 1 of 6 )

    An introduction to some of the modifiers and keywords available with SELECT to read, filter and sort database records as needed.

    In my previous tutorial entitled Databases and SQL, I introduced databases and the language commonly used to interact with them, Structured Query Language (SQL). Database servers are stores of information allowing one to easily record and access large amounts of data for a variety of purposes. SQL commands afford a convenient way to interact with the server to add, maintain and retrieve the information.

    In this tutorial I introduce some of the modifiers and keywords available with SELECT to read, filter and sort records from the database as needed. Specifically, I'll look at ORDER BY, DISTINCT, AS and LIKE.

    If you haven't done so already, I recommend reading through the previous tutorial as that's where I first present the basic usage of the SELECT command.

    For this tutorial I’ll assume a working database with the following table named Clients:

    LastName FirstName Address               City            State ZipCode
    ----------------------------------------------------------------------
    LaBelle  Nathan    367 Pineview Ter      Skaneateles     NY    13152
    Adams    Gwendolyn 205 W Third St        Brownville      AL    35020
    Smith    Harold    321 Elm St            Portsmouth      RI    02871
    Chavez   Jose      14 Quailbush Dr       Jasper          TN    37347
    Adams    Joseph    214 Main St           Seattle         WA    98102
    Copland  Dorothy   639 Spring St         West Sacramento CA    95691
    Johnson  Diane     82 Richardson Ave     Fresno          CA    93702
    Smith    Aaron     9112 Main St          San Diego       CA    92119
    Franklin Susanna   293 Lamont Dr         Tempe           AZ    85283
    Wilson   Jessica   227 Washington Ave    Irving          TX    75061
    Brown    Michael   2336 NE Cranston Blvd Terre Haute     IN    47814
    Smith    Josh      52 Harding Ln         Franklin        MA    02038

    More Database Articles Articles
    More By bluephoenix


       · No Group bys and havings? :) Good job.
       · Thank you. For those wondering what GROUP BY and HAVING are, they're expressions...
     

    DATABASE ARTICLES ARTICLES

    - More on Query Optimization for Oracle Databa...
    - Query Optimization in Oracle
    - Clusters and Other Data Structures for Oracle
    - Using Indexes with an Oracle Database
    - The Basics of Data Structures in Oracle
    - Oracle Data Structures
    - Best Practices for PL/SQL Variables
    - What`s Code Without Variables?
    - Clauses, Sorting, and SQL Queries
    - The From Clause and SQL Queries
    - Query Primer
    - Full Text Searches and Strings
    - Searching with Strings
    - Pattern Matching with Strings
    - Working with Cases of Strings


    Iron Speed




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway