2
0
Files
ausbildungschule/Zweites Jahr/aufgaben/saveLibaryDataInXml/task.md
2025-12-11 12:30:05 +01:00

770 B

2.2 XML

2.2.1

  • Namen sind klar und deutlich
  • inhaltlich korrekt geordnet

2.2.2

<?xml version="1.0" encoding="utf-8"?>
<data> 
    <buch>
        <bibNr> </bibNr>
        <title> </title>
        <zustand> </zustand>
        <seitenanzahl> </seitenanzahl> 
    </buch>
    <avmedium>
        <bibNr> </bibNr>
        <title> </title>
        <zustand> </zustand>
        <dauer> </dauer>
    </avmedium>
</data>

2.3 SQL

2.3.1

SELECT book.bibNr, book.titel, COUNT(book.bibNr) AS wieOftAusgeliehen
FROM buch AS book   
LEFT JOIN Ausleihe AS rent ON book.bibNr = rent.bibNr
    AND YEAR(rent.ausleihdatum) = 2015
GROUP BY book.bibNr, book.titel
ORDER BY wieOftAusgeliehen ASC 

2.3.2

X

2.3.3

Gute Frage, frag chatgpt!