From: | Markus Bertheau <twanger(at)bluetwanger(dot)de> |
---|---|
To: | Gurudutt <guru(at)indvalley(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Joins~ |
Date: | 2001-11-21 11:57:59 |
Message-ID: | 1006343880.29221.13.camel@entwicklung01.cenes.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Wed, 2001-11-21 at 09:37, Gurudutt wrote:
> I want to sort the combination of the result set, like
> suppose an entry exists in tickettab as 2001-11-12 12:30
> and the next entry in tickettab is 2001-11-12 16:40
>
> if there exists a entry in ticketmultab as 2001-11-12 13.30
> then I should get the results as follows
>
>
> ticketid arrival date arrival time
>
> 1 2001-11-12 12:30:00 -- tickettab entry
> 2 2001-11-12 13:30:00 --ticketmultab entry
> 3 2001-11-12 16:40:00 -- tickettab entry
maybe it works like this:
select * from (<join tickettab and ticketmultab however you want to) as
ticketjoined order by ticketjoined.arrivaldate, ticketjoined.arrivaltime
let me know if it works.
Markus Bertheau
From | Date | Subject | |
---|---|---|---|
Next Message | Patrick Welche | 2001-11-21 12:58:37 | Re: RULES |
Previous Message | Gurudutt | 2001-11-21 08:37:28 | Joins~ |