BrainDump
  Home arrow BrainDump arrow Beginning SQL
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
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? 
Google.com  
BRAINDUMP

Beginning SQL
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 12
    2007-09-25


    Table of Contents:
  • Beginning SQL
  • Retrieving Data from a Database
  • The Distinct Statement
  • Placing Data into a Database with SQL

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log 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


    Beginning SQL
    ( Page 1 of 4 )

    It's great to have information organized in a database, but what do you do with it once it's in there? The answer is that you have to get it out again before you can do anything with it. And that's where Structured Query Language (SQL) comes in. Keep reading to learn more.

    History of SQL

    It was the early 1970s, a time of high tech revolution that brought us the marvels of the Gremlin and Ford Pinto. Richard Nixon was relaxing at the luxurious Water Gate Hotel, and the do-gooder hippies finally had a day they could call their own (we gonna party like it's your Earth Day!).

    Meanwhile a young Donald D. Chamberlin and Raymond F. Boyce sat staring at IBM's ominously named System R. They had just finished filling the relational database with data and after drinking a whole bunch of champagne, realized that now that they had the data in the database...how could they get it out?

    The answer: SEQUEL. No, there was no PREQUEL (I told you, they just had a bunch of champagne). An acronym for Structured English Query Language, SEQUEL was designed to be the first relational database language. Its mission: manipulate information stored in databases. Unfortunately the name was copyrighted by an airline in the United Kingdom, so the name was eventually changed to SQL, or Structured Query Language.

    There are many extensions of SQL, including SQL-PL, MYSQL, PLSQL, and PL/pgSQL (for users under the age of thirteen not accompanied by an adult -- sorry, just kidding). For practical purposes, and because I have a word limit, we will only attempt to learn the basics of SQL itself.

    One last thing. I know you are thinking: How do I pronounce SQL? Well, I can tell you it is not the way I originally thought it was pronounced, which was squeal (you know, the sound an angered pig might make). There is a heated debate between those that wear tape on their glasses and those with pocket protectors about the proper pronunciation, and at the moment there is a gridlock between the original way of saying it, aka SEQUEL, and the hip-cool-nineties way of saying it- es queue el. I know, seeing it spelled like that makes it seem like something sexy you might say in Spanish.

    But trust me, you never want to talk about it on a hot date. Unless you date programmers or database administrators, of course, and even then I'd use caution.


    The zenith of 1970's technology

    Before We Begin

    Before we start, I will make a few assumptions. I'll assume you are familiar with relational databases and have a bizarre yet totally understandable desire to manipulate the data within them. I'll assume that you know how to use a computer (or it's one heck of a coincidence that you are reading this article) and that you have a database program, such as Microsoft Access.

    Okay, let's begin.



     
     
    >>> More BrainDump Articles          >>> More By James Payne
     

       

    BRAINDUMP ARTICLES

    - Demystifying SELinux on Kernel 2.6
    - Yahoo and Microsoft Create Ad Partnership
    - The Advantages of Obscure Open Source Browse...
    - Dell Announces CSI-style Digital Forensics S...
    - Milepost GCC Speeds Open-Source Development
    - Learn These 10 Programming Languages
    - Tomcat Capacity Planning
    - Internal and External Performance Tuning wit...
    - Tomcat Benchmark Procedure
    - Benchmarking Tomcat Performance
    - Tomcat Performance Tuning
    - Wubi: Windows-based Ubuntu Installer
    - Configuring and Optimizing Your I/O Scheduler
    - Linux I/O Schedulers
    - Advising the Linux Kernel on File I/O





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek