My.ADVISOR.com Sign-In
Username
Password
Sign Up 
Go to Article
Advanced Search 

DATA ANALYSIS

Analyze Your Microsoft Access Data with the Top Query

The SQL Top query lets you retrieve a subset of your data that you feel is important -- or random records. You can even use VBA to create a Top query that lets you interactively control how may records you will get.

By Roger Carlson

SUBSCRIBER-ONLY -- To read this article you must have a current Subscription or Passport for DATABASED ADVISOR or MICROSOFT ACCESS ADVISOR or MICROSOFT OFFICE ADVISOR or MICROSOFT PRO DEVELOPMENT ADVISOR. If you do, sign-in to view the complete article and access any Download. Click this link for details on how to activate your online access. You can purchase a Subscription or Passport at Advisor Store.

About this Article:

The Pareto rule says that 80 percent of your benefits (and problems) come from 20 percent of your population. As a result, you often want to look at only a small part of your data -- the part that matters. The Top query, a powerful, yet little known feature of Access' version of SQL lets you limit the results of a query to a certain number (or percentage) of records. One of the reasons the query isn't used more is because the name top is deceiving: Many developers assume a Top Query returns only the largest values. However, this isn't the case. You can choose, for instance, to retrieve the largest values or, just as easily, retrieve the smallest values. As you'll learn, you can even choose random records.

Roger Carlson graduated from Western Michigan University with a BS in Computer Science and taught database design and implementation at Muskegon Community College for 12 years. His Web site has been visited by over quarter of a million visitors from 170 countries and from which an estimated three million samples have been downloaded. In January of 2006, he was awarded the Microsoft Access MVP (Most Valuable Professional) award. Roger works at Spectrum Health, the largest hospital system in out-state Michigan, as a Senior Clinical Decision Support Analyst in the Quality Improvement Department. www.rogersaccesslibrary.com

Keyword Tags: Microsoft, Microsoft Access Development, Microsoft Office Access

ARTICLE INFO

DataBased Advisor

Web Edition: 2007 Week 01, Doc #19276

Print Edition: November 2007

SUBSCRIBER ONLY ARTICLE LOCKED


 Article files are on this issue's Resource CD.

Subscribe to FileMaker Advisor Magazine

Read the advanced guide to creating custom business database solutions with FileMaker software. Subscribe now to gain access to all the archives and downloads.

FileMaker.Advisor.com

Subscribe to Advisor Basics of FileMaker Pro

Learn the fundamentals of using FileMaker Pro software. Every issue gives you step-by-step instructions on creating the databases you need. Subscribe now!

FileMaker.AdvisorBasics.com

Showcase Your Smarts

Submit your tips, techniques and advice and let Advisor promote your business and build your career. Show the world what you know!

AdvisorTips.com

Use of this or any other site, content, product or service of Advisor Media constitutes acceptance of Terms of Use.
Portions copyright ©1983-2008 Advisor Media, Inc. All Rights Reserved.
Reuse or reproduction of any portion or quantity of Advisor Media's copyrighted content, in any form, for any purpose, requires written permission.
ADVISOR®, the ADVISOR logo, and other names and logos that incorporate ADVISOR are registered trademarks, trademarks or service marks of Advisor Media, Inc. in the United States and/or other countries.
Other trademarks are used for identification, editorial or descriptive purposes and are the property of their owners.
Hosted by Prominic.NET Website powered by
LOTUS SOFTWARE
carlr006 posted 10/01/2007 modified 08/19/2008 03:39:51 AM ztdbms/ztdbms
domino-144.advisor.com my.advisor.com 08/20/2008 01:55:39 AM