summaryrefslogtreecommitdiff
path: root/Year_2/Databases/libri_ex1.xquery
diff options
context:
space:
mode:
Diffstat (limited to 'Year_2/Databases/libri_ex1.xquery')
-rw-r--r--Year_2/Databases/libri_ex1.xquery2
1 files changed, 2 insertions, 0 deletions
diff --git a/Year_2/Databases/libri_ex1.xquery b/Year_2/Databases/libri_ex1.xquery
new file mode 100644
index 0000000..694c65a
--- /dev/null
+++ b/Year_2/Databases/libri_ex1.xquery
@@ -0,0 +1,2 @@
+for $libri in doc("libri.xml")//libro
+return count($libri//capitolo)