Re: sort by on two columns - Mailing list pgsql-sql

From Chris Travers
Subject Re: sort by on two columns
Date
Msg-id 009001c3d1b9$51b2e7a0$1800053d@winxp
Whole thread Raw
In response to sort by on two columns  ("Andy Lewis" <jumboc@comcast.net>)
List pgsql-sql
SELECT * FROM customers ORDER BY last_name, first_name
Works for me.
----- Original Message -----
Sent: Saturday, January 03, 2004 8:15 AM
Subject: [SQL] sort by on two columns

Hi All,
Is it possible to sort by two columns? Using the query below?
 
SELECT table1.name, table2.name, <other selected columns> FROM table1, table2 WHERE table1.id = table2.id ORDER BY <what?>
 
I want to be able to sort the names select from two different tables and two different colums(same data type).
 
Is this possible?
 
Thanks,
 
Andy

pgsql-sql by date:

Previous
From: Adam Ruth
Date:
Subject: Re: sort by on two columns
Next
From: Tatsuo Ishii
Date:
Subject: DO INSTEAD in rule