diff options
author | Santo Cariotti <santo@dcariotti.me> | 2021-02-06 22:16:00 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2021-02-06 22:16:00 +0100 |
commit | bcf585b1cfba4354989c828a3ecb3168f3eae8b9 (patch) | |
tree | b3a2ecf0a88bec8a376505ab798ba511efa828c2 /Year_2/Databases/university_marks_ex2.xquery | |
parent | 3c5a09ef620a9256fb3cf85d5d913fc2507515b0 (diff) |
databases: ex 3
Diffstat (limited to 'Year_2/Databases/university_marks_ex2.xquery')
-rw-r--r-- | Year_2/Databases/university_marks_ex2.xquery | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Year_2/Databases/university_marks_ex2.xquery b/Year_2/Databases/university_marks_ex2.xquery new file mode 100644 index 0000000..e75616c --- /dev/null +++ b/Year_2/Databases/university_marks_ex2.xquery @@ -0,0 +1,12 @@ +<ex2> +{ +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> +} +</ex2> + |