- •Лабораторная работа №2 по курсу субд oracle Введение
- •Задание
- •Составить и выполнить команды select
- •Примеры
- •13 Rows selected.
- •13 Rows selected.
- •13 Rows selected.
- •3.5" Floppy Disk 10
- •13 Rows selected.
- •3.5" Floppy Disk 10
- •12 Rows selected.
- •2 Where (price between 10 and 60) and (price not in (10,60));
- •3.5" Floppy Disk 10 30
- •11 Rows selected.
- •3.5" Floppy Disk
- •11 Rows selected.
- •3.5" Floppy Disk 10
- •14 Rows selected.
- •14 Rows selected.
3.5" Floppy Disk 10
DVD-R Disk 80
DVD+R Disk 80
DVD-RW Disk 300
DVD+RW Disk 300
Red Ink Marker 60
Green Ink Marker 60
Blue Ink Marker 60
Blue Ink Marker 80
NAME PRICE
------------------------- ----------
Milk 1 lt. 20
Milk 3 lt. 60
Milk 3 lt. 65
14 rows selected.
SQL> SELECT name, price FROM product ORDER BY name;
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, price FROM product ORDER BY name ASC;
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