pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
desc and asc
3+ messages / 3 participants
[nested] [flat]

* desc and asc
@ 1998-06-03 17:08  Mike Lemler <coronach@datacruz.com>
  0 siblings, 2 replies; 3+ messages in thread

From: coronach@datacruz.com @ 1998-06-03 17:08 UTC (permalink / raw)
  To: pgsql-sql

The nifty little booklet I have that tells the the ANSI SQL92 standard for
desc and asc seems not to work with order by.  Could some one post an example?

Thanks




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: [SQL] desc and asc
@ 1998-06-03 17:36  Herouth Maoz <herouth@oumail.openu.ac.il>
  parent: Mike Lemler <coronach@datacruz.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Herouth Maoz @ 1998-06-03 17:36 UTC (permalink / raw)
  To: coronach@datacruz.com; pgsql-sql

At 20:08 +0300 on 3/6/98, Mike Lemler wrote:


> The nifty little booklet I have that tells the the ANSI SQL92 standard for
> desc and asc seems not to work with order by.  Could some one post
> an example?

Sure:

testing=> SELECT engterm FROM glossary
testing-> WHERE dict=1 AND engterm IS NOT NULL
testing-> ORDER BY engterm ASC;
engterm
-------
Mafia
Stereo
change
geek
green
plasma
stam
(7 rows)

testing=> SELECT engterm FROM glossary
testing-> WHERE dict=1 AND engterm IS NOT NULL
testing-> ORDER BY engterm DESC;
engterm
-------
stam
plasma
green
geek
change
Stereo
Mafia
(7 rows)

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: [SQL] desc and asc
@ 1998-06-04 10:26  Jose' Soares Da Silva <sferac@bo.nettuno.it>
  parent: Mike Lemler <coronach@datacruz.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Jose' Soares Da Silva @ 1998-06-04 10:26 UTC (permalink / raw)
  To: Mike Lemler <coronach@datacruz.com>; +Cc: pgsql-sql

On Wed, 3 Jun 1998, Mike Lemler wrote:

> The nifty little booklet I have that tells the the ANSI SQL92 standard for
> desc and asc seems not to work with order by.  Could some one post an example?
> 
> Thanks
hygea=> select * from prova order by testo asc;
testo
-----
ALFA
BETA
ZEBRA
ZETA
zebra
(5 rows)

hygea=> select * from prova order by testo desc;
testo
-----
zebra
ZETA
ZEBRA
BETA
ALFA
(5 rows)
                                                Jose'




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~1998-06-04 10:26 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1998-06-03 17:08 desc and asc Mike Lemler <coronach@datacruz.com>
1998-06-03 17:36 ` Herouth Maoz <herouth@oumail.openu.ac.il>
1998-06-04 10:26 ` Jose' Soares Da Silva <sferac@bo.nettuno.it>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox