How to build this field - Mailing list pgsql-sql

From juerg.rietmann@pup.ch
Subject How to build this field
Date
Msg-id OF2565AB12.C42D9288-ONC1256A09.002BB5CC@pup.ch
Whole thread Raw
Responses Re: How to build this field
List 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
============================================



pgsql-sql by date:

Previous
From: Christopher Sawtell
Date:
Subject: Buglet?
Next
From: Karel Zak
Date:
Subject: Re: No Documentation for to_char(INTERVAL, mask)