"Verfügbar ab:" funktioniert
parent
2d7aa183aa
commit
d5ff2cf529
|
@ -31,7 +31,11 @@
|
|||
GROUP_CONCAT(DISTINCT k.Name SEPARATOR ', ') AS 'Kategorie',
|
||||
b.ISBN, b.Klappentext AS 'Inhalt', sp.Bezeichnung AS 'Sprache',
|
||||
GROUP_CONCAT(DISTINCT st.Text SEPARATOR ', ') AS 'Stichwort',
|
||||
IF(b.Anzahl!=0, 'Verfügbar', CONCAT('Verfügbar ab: ', 'Test!'))
|
||||
IF(b.Anzahl!=0, 'Verfügbar', CONCAT('Verfügbar ab: ',
|
||||
(SELECT DATE_FORMAT(DATE_ADD(ab.Enddatum, INTERVAL 1 DAY)
|
||||
,'%d.%m.%Y') FROM `ausgeliehenes_buch` AS ab
|
||||
WHERE ab.BuchID = b.BuchID
|
||||
ORDER BY ab.Reserviert ASC, ab.Enddatum ASC LIMIT 1)))
|
||||
AS 'Verfügbarkeit' FROM `buch` AS b
|
||||
INNER JOIN `buch_verfasst_von_autor` AS bvva
|
||||
ON b.BuchID = bvva.BuchID
|
||||
|
|
|
@ -38,7 +38,11 @@
|
|||
GROUP_CONCAT(DISTINCT k.Name SEPARATOR ', ') AS 'Kategorie',
|
||||
b.ISBN, b.Klappentext AS 'Inhalt', sp.Bezeichnung AS 'Sprache',
|
||||
GROUP_CONCAT(DISTINCT st.Text SEPARATOR ', ') AS 'Stichwort',
|
||||
IF(b.Anzahl!=0, 'Verfügbar', CONCAT('Verfügbar ab: ', 'Test!'))
|
||||
IF(b.Anzahl!=0, 'Verfügbar', CONCAT('Verfügbar ab: ',
|
||||
(SELECT DATE_FORMAT(DATE_ADD(ab.Enddatum, INTERVAL 1 DAY)
|
||||
,'%d.%m.%Y') FROM `ausgeliehenes_buch` AS ab
|
||||
WHERE ab.BuchID = b.BuchID
|
||||
ORDER BY ab.Reserviert ASC, ab.Enddatum ASC LIMIT 1)))
|
||||
AS 'Verfügbarkeit' FROM `buch` AS b
|
||||
INNER JOIN `buch_verfasst_von_autor` AS bvva
|
||||
ON b.BuchID = bvva.BuchID
|
||||
|
@ -130,7 +134,11 @@
|
|||
GROUP_CONCAT(DISTINCT k.Name SEPARATOR ', ') AS 'Kategorie',
|
||||
b.ISBN, b.Klappentext AS 'Inhalt', sp.Bezeichnung AS 'Sprache',
|
||||
GROUP_CONCAT(DISTINCT st.Text SEPARATOR ', ') AS 'Stichwort',
|
||||
IF(b.Anzahl!=0, 'Verfügbar', CONCAT('Verfügbar ab: ', 'Test!'))
|
||||
IF(b.Anzahl!=0, 'Verfügbar', CONCAT('Verfügbar ab: ',
|
||||
(SELECT DATE_FORMAT(DATE_ADD(ab.Enddatum, INTERVAL 1 DAY)
|
||||
,'%d.%m.%Y') FROM `ausgeliehenes_buch` AS ab
|
||||
WHERE ab.BuchID = b.BuchID
|
||||
ORDER BY ab.Reserviert ASC, ab.Enddatum ASC LIMIT 1)))
|
||||
AS 'Verfügbarkeit' FROM `buch` AS b
|
||||
INNER JOIN `buch_verfasst_von_autor` AS bvva
|
||||
ON b.BuchID = bvva.BuchID
|
||||
|
|
Loading…
Reference in New Issue