BrainDump
  Home arrow BrainDump arrow SQL: Functioning in the Real World
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

SQL: Functioning in the Real World
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 1
    2007-12-10


    Table of Contents:
  • SQL: Functioning in the Real World
  • What You Talkin Bout Willis?
  • Count
  • Count Distinct
  • Minimum and Maximum

  • 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


    SQL: Functioning in the Real World
    ( Page 1 of 5 )

    A couple of months or so ago, I began talking about SQL functions and what they're used for. This article picks up where I left off. It defines the two types of functions, and begins to explain them in great detail.

    Functioning in the Real World

    Let's face it, none of us function the way we want to in the real world. Sure, slap a copy of myself in the Sims and the next thing you know I am an in-shape, good looking, millionaire writer with oodles of time, a bevy of chicks from the neighborhood dropping by (and some dudes too, no matter how often I lock the door). I also have a hip house, a sauna, and a soda machine in my make believe Sim world.

    Then there's me in the real world. On a fast track to being the world's fattest man (look out Guinness here I come), driving a car with no air conditioner in South Florida (aka, the Sun), and the only females that come to my door are trying to sell me cookies.

    And if you are reading this article on Saturday, then guess what: you're in the same boat as me. But never fear. SQL, just like Tony Robbins, can help you out.

    We left off last time with the promise of covering our good ole' pal the Function. In SQL, functions are used for counting and calculations and for saving lazy programmers time. There are two types of functions: Aggregate Functions and Scalar Functions. In this article we will discuss most of the Aggregates, such as how to get the average value of a column, count the values in a column and total them.

    We'll also learn how to find both the minimum and maximum values in a column, using the min and max functions respectively. There's a lot of learnin' to do, so let's get started.



     
     
    >>> 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 4 hosted by Hostway
    Stay green...Green IT