SQLсервер в Linux -самостоятельное освоение пакета

         

Использование секции ORDER BY



Листинг 4.42. Использование секции ORDER BY

booktown=# SELECT isbn, edition, publication

booktown-# FROM editions

ooktown-# ORDER BY publication ASC;

Isbn | edition | publication

0760720002 | 1 | 1868-01-01

0679803335 | 1 | 1922-01-01

0694003611 | 1 | 1947-03-04

0394800753 | 1 | 1949-03-01

0394900014 | 1 | 1957-01-01

039480001X | 1 | 1957-03-01

0823015505 | 1 | 1958-01-01

0451160916 | 1 | 1981-08-01

0590445065 | 1 | 1987-03-01

0385121679 | 2 | 1993-10-01

1885418035 | 1 | 1995-03-28

0441172717 | 2 | 1998-09-01

0929605942 | 2 | 1998-12-01

044100590X | 3 | 1999-10-01

0451198492 | 3 | 1999-10-01

0451457994 | 3 | 2000-09-12

0596000855 | 2 | 2001-03-01

(17 rows)



Содержание раздела