alle due tabelle (libri, studenti) aggiungi un ID progressivo.
la terza tabella (prestiti) sarà
Prestiti
IDLibro
IDStudente
DataPrelievo
DataRestituzione
Commenti
.... altro secondo tue necessità