SELECT p.cardnumber, p.surname, p.firstname, p.phone, p.address, p.city, p.email, c.date_due, (TO_DAYS(curdate())-TO_DAYS( date_due)) AS ‘Jours de retards’, i.itype, b.title, b.author, i.barcode, COUNT(h.biblionumber) AS ‘NB de réservations’, CONCAT(‘‘,b.biblionumber,’‘) FROM borrowers p LEFT JOIN issues c USING (borrowernumber) LEFT JOIN items i USING (itemnumber) […]
SQL-Module Circulation
2 articles
SELECT c.date_due, p.categorycode, b.title, b.author, i.itemcallnumber, i.barcode, i.location FROM issues c LEFT JOIN items i ON (c.itemnumber=i.itemnumber) LEFT JOIN borrowers p ON (c.borrowernumber=p.borrowernumber) LEFT JOIN biblio b ON (i.biblionumber=b.biblionumber) ORDER BY c.date_due AS Cette requête croise des données de plusieurs […]