2
0

add task two of today

This commit is contained in:
cwikladaniel
2025-12-11 12:30:05 +01:00
parent 576d664240
commit 3a3c99701f
3 changed files with 57 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
SELECT book.bibNr, book.titel, COUNT(book.bibNr) AS ausleihAnzahl
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 ausleihAnzahl ASC