From: | juerg(dot)rietmann(at)pup(dot)ch |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | How to build this field |
Date: | 2001-03-08 08:10:59 |
Message-ID: | OF2565AB12.C42D9288-ONC1256A09.002BB5CC@pup.ch |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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
============================================
From | Date | Subject | |
---|---|---|---|
Next Message | chard | 2001-03-08 08:46:46 | help |
Previous Message | Christopher Sawtell | 2001-03-08 06:16:20 | Buglet? |