ORDER BY COLUMN_A, (COLUMN_B or COLUMN_C), COLUMN_D - Mailing list pgsql-sql

From Rodrigo Rosenfeld Rosas
Subject ORDER BY COLUMN_A, (COLUMN_B or COLUMN_C), COLUMN_D
Date
Msg-id CAGmv+wKCpc9VeyYp6nS9WL1vrtX=3+i87mFVMP4sEpB1LyPGQA@mail.gmail.com
Whole thread Raw
Responses Re: ORDER BY COLUMN_A, (COLUMN_B or COLUMN_C), COLUMN_D
Re: ORDER BY COLUMN_A, (COLUMN_B or COLUMN_C), COLUMN_D
List pgsql-sql
This is my first message in this list :)

I need to be able to sort a query by column A, then B or C (which one
is smaller, both are of the same type and table but on different left
joins) and then by D.

How can I do that?

Thanks in advance,
Rodrigo.



pgsql-sql by date:

Previous
From: Gary Stainburn
Date:
Subject: Re: weird join producing too many rows
Next
From: Samuel Gendler
Date:
Subject: Re: ORDER BY COLUMN_A, (COLUMN_B or COLUMN_C), COLUMN_D