🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #3707

How to get the result "select count(*) from ..."

#3707
From: Peter Schoner
Date: Wed, 10 Jul 2002 14:35
40 lines
1991 bytes
Hi!

I am very familiar with SQL but not with the complete BCB5 possibilities.

I simply wanted to get a number of records with
Form1->SQL_Params->SQL->Add("select count(*) from T_output where i_Reakt =
'R01'");

or the values
Form1->SQL_Params->SQL->Add("select diestinct i_Reakt from T_output");


However the help file says:
"A live result set for a query against a single table or view is returned if
the query does not contain any of the following:

DISTINCT in the SELECT clause
 Joins (inner, outer, or UNION)
 Aggregate functions with or without GROUP BY or HAVING clauses
 Base tables or views that are not updatable
 Subqueries
 ORDER BY clauses not based on an index"


So, how can I ask these questions to my database? It does not work with
TQuery! Does it work TIBQuery?


Thanks in advance
Peter

.........................
Dipl.-Math. Peter Schoner
MAIL: schoner@wirtschaft.uni-kassel.de

Uni Kassel -- Wirtschaftswissenschaften
FG Produktionswirtschaft und Logistik
www.wirtschaft.uni-kassel.de/vahrenkamp

Nora-Platiel-Str. 4 -- 34127 Kassel
Technical Details
Message-ID: <3d2c4602_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,bcad3e0669853dd8,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-07-10 09:06:50 PST
From: "Peter Schoner" <schoner@wirtschaft.uni-kassel.de>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: How to get the result "select count(*) from ..."
Date: Wed, 10 Jul 2002 16:35:24 +0200
Lines: 42
Organization: University of Kassel
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 141.51.88.121
Message-ID: <3d2c4602_1@dnews>
X-Trace: dnews 1026311682 141.51.88.121 (10 Jul 2002 07:34:42 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!dnews