From: juerg.rietmann@pup.ch
To: pgsql-sql@postgresql.org
Subject: How to build this field
Date: Thu, 8 Mar 2001 09:10:59 +0100
Message-ID: <OF2565AB12.C42D9288-ONC1256A09.002BB5CC@pup.ch> (raw)
Hi everybody
I need to build an additional field (metakey) out of three fields in the
table.
SELECT a.a_kurzbez, a.a_ausgabenr, a.a_bundnr, a.a_nr, a.a_z_blaenge,
a.a_z_laenge, a.a_z_umfang FROM auftrag a
should be changed to something like
SELECT (a.a_kurzbez + a.a_ausgabenr + a.a_bundnr) as metakey, a.a_kurzbez,
a.a_ausgabenr, a.a_bundnr, a.a_nr, a.a_z_blaenge, a.a_z_laenge,
a.a_z_umfang FROM auftrag a
output :
field : metakey a_kurzbez a_ausgabenr
a_bundnr
DMD 001 03 DMD 001
03
Thanks for any help ... jr
============================================
PFISTER + PARTNER, SYSTEM - ENGINEERING AG
Juerg Rietmann
Grundstrasse 22a
6343 Rotkreuz
Switzerland
phone: +4141 790 4040
fax: +4141 790 2545
mobile: +4179 211 0315
============================================
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: juerg.rietmann@pup.ch
Subject: Re: How to build this field
In-Reply-To: <OF2565AB12.C42D9288-ONC1256A09.002BB5CC@pup.ch>
References: <OF2565AB12.C42D9288-ONC1256A09.002BB5CC@pup.ch>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox