🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #1027

Aggregate functions on rowsets

#1027
From: EDDIE SHUM
Date: Tue, 02 Jun 1998 00:00
18 lines
1323 bytes
Would be obliged if someone could let me know on how to perform
aggregate functions on a given rowset.   

Say, for example, you have a SQL table containing data on name of
students, Place of birth (like a given state in the US) and their text
score.  Suppose you want to know what is the average score for students
born in Kansas.  In your applicatin, you would normally carry out a
filter with the help of the data button components provided by VDB7
which are very good.  Now, you have a subset of your original rowset or
a sub-rowset.  What is OODML function or command for doing sum, average,
etc.?

I have tried the "calculate aggregates" function in VDB7 and it always
returns the result for the whole rowset and not a subset.  Could someone
shed some light on this?

Thank you in advance.
Technical Details
Message-ID: <3573C716.5B3C@netvigator.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,b9032b9bcf80acce,start
X-Google-Attributes: gidff5a1,public
From: EDDIE SHUM <econshum@netvigator.com>
Subject: Aggregate functions on rowsets
Date: 1998/06/02
Message-ID: <3573C716.5B3C@netvigator.com>
X-Deja-AN: 358738238
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: ECON CONSULTANCY LTD.
Mime-Version: 1.0
Reply-To: econshum@netvigator.com
Newsgroups: borland.public.vdbase.data.sql