🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Custom Field Name in select statement

#178
From: joseph
Date: Wed, 09 Jul 2008 09:45
14 lines
1281 bytes
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


I know I can use:
Select Cat1Code as HTL
FROM Test


but I want the HTL 'alias' retrieved from another table
Technical Details
Message-ID: <487488b3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,d789b60e224f99ea,start
X-Google-Attributes: gid114a0e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "joseph" <pelli@euroweb.net.mt>
Newsgroups: borland.public.interbase.sql
Subject: Custom Field Name in select statement
Date: Wed, 9 Jul 2008 11:45:23 +0200
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1914
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1914
NNTP-Posting-Host: 194.158.51.158
Message-ID: <487488b3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1215596723 194.158.51.158 (9 Jul 2008 02:45:23 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail