Skip site navigation (1) Skip section navigation (2)

Three table query

From: Brian <Brrrian(at)Excite(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Three table query
Date: 2001-12-23 00:58:42
Message-ID: 5.1.0.14.2.20011222165742.02908b30@pop.we.mediaone.net (view raw or flat)
Thread:
Lists: pgsql-novice
Sorry, first post with no topic.

Given 3 tables:
---------------
Table Operations(Op)
Op_ID, Op_Name,...

and

Table TravelerHEADER(TravH)
TravH_ID, TravName, Part_ID,...

and

Table TravelerDETAIL(TravD)
TravD_ID, TravH_ID, Op_ID, TravOrder,...

How can I retrieve the OP RecordSet
associated with the subset of TravD records
given a single TravH_ID?

That is to say:
There are a finite set of travd records that relate to a singular travh record... for each of those travd records I want the related Op record.

Stumped again,
Brian 


Responses

pgsql-novice by date

Next:From: Frank BaxDate: 2001-12-23 03:19:37
Subject: Re: Three table query
Previous:From: BrianDate: 2001-12-23 00:42:59
Subject:

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group