Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
63
Добавлен:
16.04.2013
Размер:
246.78 Кб
Скачать

14 Rows selected.

SQL> SELECT name, price FROM product ORDER BY name DESC;

NAME PRICE

------------------------- ----------

Red Ink Marker 60

Milk 3 lt. 60

Milk 3 lt. 65

Milk 1 lt. 20

Green Ink Marker 60

DVD-RW Disk 300

DVD-R Disk 80

DVD+RW Disk 300

DVD+R Disk 80

CD-RW Disk 20

CD-R Disk 15

NAME PRICE

------------------------- ----------

Blue Ink Marker 60

Blue Ink Marker 80

3.5" Floppy Disk 10

14 rows selected.

SQL> SELECT name, price FROM product ORDER BY name, price;

NAME PRICE

------------------------- ----------

3.5" Floppy Disk 10

Blue Ink Marker 60

Blue Ink Marker 80

CD-R Disk 15

CD-RW Disk 20

DVD+R Disk 80

DVD+RW Disk 300

DVD-R Disk 80

DVD-RW Disk 300

Green Ink Marker 60

Milk 1 lt. 20

NAME PRICE

------------------------- ----------

Milk 3 lt. 60

Milk 3 lt. 65

Red Ink Marker 60

14 rows selected.

SQL> SELECT name FROM product ORDER BY quantity DESC;

NAME

-------------------------

Blue Ink Marker

Milk 1 lt.

Milk 3 lt.

CD-R Disk

CD-RW Disk

3.5" Floppy Disk

DVD-R Disk

Red Ink Marker

Blue Ink Marker

Green Ink Marker

DVD+R Disk

NAME

-------------------------

DVD-RW Disk

DVD+RW Disk

Milk 3 lt.

Соседние файлы в папке lab2
  • #
    16.04.2013246.78 Кб63lab2.doc
  • #
    16.04.201365.37 Кб64lab2_sample.lst
  • #
    16.04.20139.29 Кб66lab2_sample.sql