Article View: borland.public.vdbase.data.sql
Article #299Re: Bunch of SQL open
From: Gary Gary White
Date: Mon, 28 Dec 1998 00:00
Date: Mon, 28 Dec 1998 00:00
29 lines
1348 bytes
1348 bytes
On Mon, 28 Dec 1998 12:37:12 -0500, David M. O'Neil wrote: > > When I add "save to" to the line as follows; > > select sum((rate* N_of_pages)+ price) tot_inv, sum(Etax) t_Etax from bill > where bill_n= :t_recno save to temp_1 > > the very next line; > > a= tot_inv > > gives the error, "Variable undefined. TOT_INV." I didn't have this problem > before adding the "save to" to the statement. What's the problem? You appear to be missing the word AS. The select statement should be: select sum((rate* N_of_pages)+ price) AS tot_inv, ; sum(Etax) AS t_Etax ; from bill where bill_n= :t_recno ; save to temp_1 Gary Some dBASE Stuff at http://www.AppTools.com/dbase
Technical Details
Message-ID:
<3687d128.433262@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36819874.659232AA@ONeilComputing.com> <75u0jt$fdm3@forums.borland.com> <36850D4F.AACE8665@ONeilComputing.com> <7634mg$iu24@forums.borland.com> <3687C1C7.C5ADFCE2@ONeilComputing.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,b11ae58a0bc6f72d X-Google-Attributes: gidff5a1,public From: Gary (Gary White) Subject: Re: Bunch of SQL open Date: 1998/12/28 Message-ID: <3687d128.433262@forums.borland.com> X-Deja-AN: 426514206 Content-Transfer-Encoding: 7bit References: <36819874.659232AA@ONeilComputing.com> <75u0jt$fdm3@forums.borland.com> <36850D4F.AACE8665@ONeilComputing.com> <7634mg$iu24@forums.borland.com> <3687C1C7.C5ADFCE2@ONeilComputing.com> Content-Type: text/plain; charset=us-ascii Organization: Just Me Mime-Version: 1.0 Reply-To: Gary Newsgroups: borland.public.vdbase.data.sql