This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(: | |
1.Вывести, упорядочив по убыванию цены, названия и даты публикаций книг, | |
опубликованных после 7 декабря 2000 года и не автора Corets, Eva. | |
Например: | |
<title>Midnight Rain</title> | |
<publish_date>2000-12-16</publish_date> | |
:) | |
declare variable $books := //catalog/book[author != 'Corets, Eva"']; | |
for $i in $books |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(: | |
1.Вывести, упорядочив по убыванию цены, названия и даты публикаций книг, | |
опубликованных после 7 декабря 2000 года и не автора Corets, Eva. | |
Например: | |
<title>Midnight Rain</title> | |
<publish_date>2000-12-16</publish_date> | |
:) | |
let $doc := doc("books.xml") | |
let $books := $doc/catalog/book |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(: | |
1.Вывести название языка клиента и название библиотеки, если авторов у библиотеки не менее трёх, | |
а название языка включает не более 6 символов, упорядочив длине названия языка. | |
Например: | |
<language>C</language> | |
<name>hiredis</name> | |
:) | |
let $doc := doc("redis.xml") | |
let $pathToClient := $doc/root/client |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(: | |
1.Вывести список языков клиентов и количество библиотек на этом языке, | |
упорядочив по убыванию количества библиотек. | |
Формат вывода: | |
<lib>language Perl : client 12</lib> | |
:) | |
let $doc := doc("redis.xml") | |
let $pathToLanguage := $doc/root/client/language |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set serveroutput on; | |
-- a) временную таблицу, включающую колонки, позволяющие запомнить | |
-- дату добавления, удаления или изменения данных в головной | |
-- таблице, вид операции, старое значение и новое значение строки; | |
TRUNCATE TABLE Parent_log_rr; | |
DROP TABLE Parent_log_rr; | |
DROP VIEW oldest_childs; | |
DROP TABLE Child; | |
DROP TABLE Parent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Types | |
DROP TYPE CUSTOM_TYPE; | |
CREATE TYPE CUSTOM_TYPE AS OBJECT ( | |
COLUMN1 VARCHAR2(50), | |
COLUMN2 NUMBER | |
); | |
-- Tables | |
-- Section 4.a |