Re: [Postgresql-it] NEWBIE: trigger ed argomenti ed alcuni altri dubbi...

  • From: billo.dario@xxxxxxxx (Dario Billo)
  • To: postgresql-it@xxxxxxxxxxxxxxxxx
  • Date: Sat, 5 Jun 2004 17:02:26 +0200

Henryx <henryx.b@xxxxxxxxx> wrote:

a che 
pro avere due anagrafiche utenti?

Hai perfettamente ragione... la soluzione è così ovvia che mi ci sono
impantanato. 
Grazie ciao

Received: (qmail 8267 invoked from network); 7 Jun 2004 08:39:04 -0000
Received: from host206-103.pool8023.interbusiness.it (HELO intranet.icem.it) 
(80.23.103.206)
  by 0 with SMTP; 7 Jun 2004 08:39:04 -0000
Received: from yanny-pc (yanny.icem.it [192.168.35.25])
        by intranet.icem.it (8.12.11/8.12.11) with SMTP id i579hG71025459
        for <postgresql-it@xxxxxxxxxxxxxxxxx>; Mon, 7 Jun 2004 11:43:16 +0200
From: Gianni Rondinini <bugbarbeq@xxxxxxxxxxxx>
To: postgresql-it@xxxxxxxxxxxxxxxxx
Date: Mon, 07 Jun 2004 10:42:01 +0200
Organization: Icem s.r.l.
Message-ID: <gha8c0p8km5ovrm61mqecqr72qq8k7cjm8@xxxxxxx>
X-Mailer: Forte Agent 1.8/32.548
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: [Postgresql-it] quasi-ot: aiuto per join su 3 tabelle
Sender: postgresql-it-admin@xxxxxxxxxxxxxxxxx
Errors-To: postgresql-it-admin@xxxxxxxxxxxxxxxxx
X-BeenThere: postgresql-it@xxxxxxxxxxxxxxxxx
X-Mailman-Version: 2.0.11
Precedence: bulk
Reply-To: postgresql-it@xxxxxxxxxxxxxxxxx
List-Help: <mailto:postgresql-it-request@xxxxxxxxxxxxxxxxx?subject=help>
List-Post: <mailto:postgresql-it@xxxxxxxxxxxxxxxxx>
List-Subscribe: <http://www.linuxtime.it/mailman/listinfo/postgresql-it>,
        <mailto:postgresql-it-request@xxxxxxxxxxxxxxxxx?subject=subscribe>
List-Id: <postgresql-it.mail.linuxtime.it>
List-Unsubscribe: <http://www.linuxtime.it/mailman/listinfo/postgresql-it>,
        <mailto:postgresql-it-request@xxxxxxxxxxxxxxxxx?subject=unsubscribe>
List-Archive: <http://www.linuxtime.it/pipermail/postgresql-it/>

non e' strettamente legato a postgresql, ma non ci cavo i piedi.

non nascondo che il funzionamento delle join mi rimane un tantino...
diciamo ostico.

ho capito come funziona una join tra 2 tabelle, ma non riesco a
mettere in pratica come farlo su 3 o 4 tabelle --sempre se si puo'
fare, ma non vedo perche' no--.

per limitare la ridondanza dei dati e semplificare il funzionamento
della mia applicazione ho diviso i dati in una serie di tabelle.

al momento uso questa query:

SELECT 
        t.qta, t.cod_art, t.prezzo, s.desc_ord 
FROM word_forn_art AS t 
JOIN wart_ord s ON t.cod_art = s.cod_art 
WHERE ord_num = 'RADFSTMP' 
ORDER BY cod_art ASC

e funziona come deve, pero' mi servirebbe aggiungere il campo:
anagr.nome
prendendolo dalla riga in cui anagr.id e' uguale a s.id_forn.

mi aiutate a farlo?

grazie in anticipo.
-- 
Gianni Rondinini
Icem s.r.l. - http://www.icem.it
Tel: +39 0545 78036
Fax: +39 0545 78727

Other related posts: