Re: [SQL] How to write this query!

2003-07-21 Thread Richard Huxton
On Sunday 13 July 2003 17:32, Jo wrote: > These are my PostgreSQL tables: > > pid | name > 1 | A > 2 | B > 3 | C > 4 | D > 5 | E > > tid | pid 1 | pid 2 | pid 3 > 1 | 1| 2| 3 > > Bascially, I would like to write a query to list only > the names which their "pid" match th

[SQL] How to write this query!

2003-07-19 Thread Jo
These are my PostgreSQL tables: pid | name 1 | A 2 | B 3 | C 4 | D 5 | E tid | pid 1 | pid 2 | pid 3 1 | 1| 2| 3 Bascially, I would like to write a query to list only the names which their "pid" match those pids in the other table. If anyone knows, pls help!!