summaryrefslogtreecommitdiff
path: root/Year_2/Databases/university_marks.xquery
diff options
context:
space:
mode:
Diffstat (limited to 'Year_2/Databases/university_marks.xquery')
-rw-r--r--Year_2/Databases/university_marks.xquery11
1 files changed, 11 insertions, 0 deletions
diff --git a/Year_2/Databases/university_marks.xquery b/Year_2/Databases/university_marks.xquery
new file mode 100644
index 0000000..e2f0e4e
--- /dev/null
+++ b/Year_2/Databases/university_marks.xquery
@@ -0,0 +1,11 @@
+<students>
+{
+for $student in doc("university_marks.xml")//libretto
+where $student/esami//voto/text()=30
+return <student>
+ {$student/studente/nome/text()}
+ { ' ' }
+ {$student/studente/cognome/text()}
+ </student>
+}
+</students>