How to write this query!

From: Jo <joacn(at)yahoo(dot)co(dot)uk>
To: pgsql-sql(at)postgresql(dot)org
Subject: How to write this query!
Date: 2003-07-13 16:32:22
Message-ID: 20030713163222.88233.qmail@web10305.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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!!

Many Thanks!!

Joe

________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://uk.messenger.yahoo.com/

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Steve Wampler 2003-07-13 21:50:42 Replacing a simple nested query?
Previous Message Jan Wieck 2003-07-13 12:03:06 Re: trigger proceedures in sql