🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #179

Re: Custom Field Name in select statement

#179
From: Wayne Niddery (TeamB)
Date: Wed, 09 Jul 2008 15:29
21 lines
1656 bytes
"joseph" <pelli@euroweb.net.mt> wrote in message 
news:487488b3$1@newsgroups.borland.com...
>
> Is there a way I can return a custom field name (based on data in another
> table) using a select statement as follows:
>
> Select Cat1Code as (Select CatCode From Category)
> from Test


No. Values are values, meta names are meta names.

You can select the alias as a separate field and then deal with it in the 
application:

 Select Cat1Code,  (Select CatCode From Category) as CatName
 from Test

-- 
Wayne Niddery - TeamB (www.teamb.com)
Winwright, Inc. (www.winwright.ca) 
Technical Details
Message-ID: <4874d946@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <487488b3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,d789b60e224f99ea
X-Google-Attributes: gid114a0e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Wayne Niddery \(TeamB\)" <wniddery@chaffaci.on.ca>
Newsgroups: borland.public.interbase.sql
References: <487488b3$1@newsgroups.borland.com>
In-Reply-To: <487488b3$1@newsgroups.borland.com>
Subject: Re: Custom Field Name in select statement
Date: Wed, 9 Jul 2008 11:29:11 -0400
Lines: 22
MIME-Version: 1.0
Content-Type: text/plain;
 format=flowed;
 charset="iso-8859-1";
 reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18000
NNTP-Posting-Host: 24.137.214.213
Message-ID: <4874d946@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1215617350 24.137.214.213 (9 Jul 2008 08:29:10 -0700)
X-Authenticated-User: wniddery
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail