Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


Averages

September 13, 1998

A final tool that you can use to get aggregate data about a table is the AVG operator. The AVG operator follows the expected syntax of:

    SELECT AVG(column_name)
    FROM table_name
    WHERE optional_where_clause;

For example, to determine the average salary of employees from the EMPLOYEES table, you would use:

    SELECT AVG(EMP_SALARY)
    FROM EMPLOYEES;

That SQL code would yield:

    AVG (SALARY)
    -------------------------------
    90000
    -------------------------------

Distinct
Introduction to Databases for the Web | Table of Contents
Joins


Up to => Home / Authoring / DB / Intro




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers