Plz, what is the most "correct" method

From: "PipHans" <piphans(at)hotmail(dot)co>
To: pgsql-sql(at)postgresql(dot)org
Subject: Plz, what is the most "correct" method
Date: 2003-09-10 16:01:55
Message-ID: 3f5f4af1$0$48889$edfadb0f@dtext02.news.tele.dk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

Given 2 tables:

Table1:
id Auto,int,PrimKey
table2id int
txt nvarchar50

Table2:
id Auto,int,PrimKey
order int

The scenario: Table2.order defines how the table1.txt is should be ordered.
Table1.table2id contains the id of the order. This cannot be changed

How do I select all Table1.txt values but ordered by their corresponding
values of the table2.order field?

--
Thx,
PipHans

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.516 / Virus Database: 313 - Release Date: 01-09-2003

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Eisentraut 2003-09-10 19:46:43 Re: how to vacum
Previous Message Bruno Wolff III 2003-09-10 13:07:09 Re: how to vacum