Here is the SQL I use to get a list of Song Titles with the song book (if applicable):
SELECT songs.title,songs.ccli_number,song_books.name,songs_songbooks.entry FROM songs LEFT JOIN songs_songbooks ON songs_songbooks.song_id=songs.id LEFT JOIN song_books ON songs_songbooks.songbook_id=song_books.id
ORDER BY title
I use DB Browser for SQLite see https://sqlitebrowser.org/