Re: Issues with subqueries !
Hi Cohen,
Try:
SELECT table.id, table.nombre, (SELECT table2.nom FROM table2 Where table2.id_p = table.id) AS nom_p
FROM table WHERE table.id_pers = 10;
Or
SELECT table.id, table.nombre, table2.nom AS nom_p
FROM table
INNER JOIN table2 ON table.id = table2.id_p
WHERE table.id_pers = 10;
Subject
Views
Written By
Posted
2511
April 14, 2008 02:32PM
Re: Issues with subqueries !
1810
April 14, 2008 03:49PM
1731
April 14, 2008 04:34PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.