![](https://csdnimg.cn/release/download_crawler_static/86274224/bg1.jpg)
C H A P T E R
30
XML
Solutions for the Pratie Exerises of Chapter 30
Pratie Exerises
30.1
Answer:
The quer y is shown in Figure 30.101
30.2
Answer:
The quer y is shown in Figure 30.102
30.3
Answer:
The quer y is shown in Figure 30.103
for
$b
in
distint (/university/department/dept name)
return
<
dept-total
>
<
dept
name
>
$b/text()
<
/dept name
>
let
$s := sum (/university/instrutor[dept name=$b℄/salary)
return
<
total-salary
>
$s
<
/total-salary
>
<
/dept-total
>
Figure 30.101
XQ
uery
13
评论0