BrainDump
  Home arrow BrainDump arrow All About SQL Functions
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? 
BRAINDUMP

All About SQL Functions
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 4
    2007-12-17


    Table of Contents:
  • All About SQL Functions
  • More Aggregate Functions
  • STDEV
  • Scalar Functions
  • Mid(c,start[,end]
  • Round(c,decimals)

  • 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


    All About SQL Functions
    ( Page 1 of 6 )

    In the last tutorial we left off with the SUM(column) function. In this article we will cover the remaining Aggregate Functions and the Scalar Functions. We might even make some fat jokes, some mama jokes, and as always, some nerd jokes.

    For this tutorial we are going to create a new database. Since I saw the Robot Chicken and Family Guy Star Wars episodes last night, and got like four hours of sleep to boot, we will be working with a Star Wars database. I know, I know. The writing in Star Wars was atrocious. Of course to avoid a lawsuit, we will be using my own version of Star Wars, call SilverWares: The Battle of the Knives and Spoons.

    Before I give you the data though, let's do a little thing I like to call back-story. The story picks up with the Spoons trying to destroy the Knives. To do so, they have created a menacing weapon, a Spork, a Spoon with the built in ability to use...the Fork. Meanwhile, the Knives have uncovered their old Fork Master Gouda, a strange smelly alien whom they hope will teach young Luke Breadslicer the ways of the Fork.

    Here is the data for our new database Employees:

     

    Name

    Position

    Salary

    Side

    Darth Brooks

    Sith Lord/Country Singer

    $10,000

    Spoon

    Darth Ladel

    Sith Master

    $100,000

    Spoon

    Luke Breadslicer

    Fork Apprentice

    $20,000

    Knife

    Gouda

    Fork Master

    $120,000

    Knife

    Jabba the Cup

    Bounty Hunter Agent

    $500,000

    Neutral

    Bubba Fett

    Red Neck Alien Bounty Hunter

    $1,000

    Neutral

    Dance Solo

    Pilot for Hire

    $40,000

    Knife

    Baklava

    Hairy Co-Pilot

    $25,000

    Knife



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

       

    BRAINDUMP ARTICLES

    - 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
    - How to Replace an Invalid Windows XP Install...
    - Using mmap() for Advanced File I/O
    - Choosing an Open-Source Content Management S...
    - The MMAP System Call in Linux





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
    Stay green...Green IT