🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

BDE & SQL problem?

#918
From: Robert Dick
Date: Fri, 03 Jul 1998 00:00
36 lines
1412 bytes
Hi all, I'm having a problem with SQL and the use of a 'sales' database
(defined using BDE), can anyone shed some light on this please?

The first code sample below works OK but when the 'group
by' clause is added (sample 2), the table is not saved to the specified
'sales'
database (the 'sales' database exists on a network drive and is defined
in the BDE
Administrator) but to the directory that the 'tables' tab is set to in
the
Navigator at the time the program is run.

Sample 1
-----------
open database sales
set database to sales

select year_date, customer, tonnes;
 from :sales:budget;
 save to :sales:summary.dbf

sample 2
----------
open database sales
set database to sales

 select year_date, customer, sum(tonnes) tonnes;
   from :sales:budget;
   group by year_date, customer;
   save to :sales:summary.dbf


I have also tried this with other tables with the same result.

TIA....Robert.
Technical Details
Message-ID: <359CFA3B.4BB59D58@csi.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,d65c607cf4a60685,start
X-Google-Attributes: gidff5a1,public
From: Robert Dick <robertdick1@csi.com>
Subject: BDE & SQL problem?
Date: 1998/07/03
Message-ID: <359CFA3B.4BB59D58@csi.com>
X-Deja-AN: 368427087
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.vdbase.data.sql