🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.database
1 messages
1 total messages Started by dankell Fri, 01 Feb 2008 15:31
TClientDataSet Aggregate questions
#174
Author: dankell
Date: Fri, 01 Feb 2008 15:31
28 lines
2045 bytes
I am trying to work my way around nested TClientDatasets to see if
they do what I need them to.  I am building a small league application
as an example.

I currently have 2 TClientDataSets:

1) Matches, containing fields for:

   Date, Time, HomeRef, HomeName, HomeScore, AwayRef, AwayName,
AwayScore

2) Teams, containing:

   Ref, Name

Matches looks up its names from Teams and all is well.  What I am
having problems with is getting aggregate information for the tables.

I would like to find from the Matches table the count of all the
matches played per team, and the goals for / against for each team.

Am I right in thinking that these aggregate fields will need to be on
set on the Matches dataset?  And will I need interim fields to get to
where I want (e.g. GoalsForHome, GoalsForAway)?

Cheers

Dan
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads