question 2 - Mailing list pgsql-general

From ZioBudda
Subject question 2
Date
Msg-id Pine.LNX.4.03.9812041905200.456-100000@michel.enter.it
Whole thread Raw
List pgsql-general
Hi again,
I have this query :
select prestito.*, libro.tipo,libro.id_libro from prestito,libro where
prestito.id_libro =
 libro.id_libro_key
that return me (correct!):
id_libro|id_utente|data_prestito|visto|notifica1|notifica2|notifica3|tipo|id_libro
--------+---------+-------------+-----+---------+---------+---------+----+--------
      12|       37|   12-04-1998|f    |         |         |         |
1|s1
      13|       37|   12-04-1998|f    |         |         |         |
2|k1
(2 rows)

but if you see the item libro.id_libro is id_libro (s1,k1) and in the
prestito.*
 there is another id_libro (11,12). Now I want to know how can I select
the second "id_lib
ro".




"Il divertimento e' giusto se la scimmia ci prende gusto"
--
Italian Linux Press: http://ziobudda.enter.it/ILP/
--
Morelli 'ZioBudda' Davide Michel - Member of Pluto Linux User Group
michel@michel.enter.it - http://ziobudda.enter.it/
Linux Problem? Ask to linux@media.dsi.unimi.it
"/dev/ziobudda: access to /var/tmp/beer denied, use /var/adm/pineapple"


pgsql-general by date:

Previous
From: ZioBudda
Date:
Subject: question 1
Next
From: ZioBudda
Date:
Subject: question 3