View Single Post
Old 06-18-2013, 12:17 PM   #10
mike_bike_kite
Digitally confused
mike_bike_kite ought to be getting tired of karma fortunes by now.mike_bike_kite ought to be getting tired of karma fortunes by now.mike_bike_kite ought to be getting tired of karma fortunes by now.mike_bike_kite ought to be getting tired of karma fortunes by now.mike_bike_kite ought to be getting tired of karma fortunes by now.mike_bike_kite ought to be getting tired of karma fortunes by now.mike_bike_kite ought to be getting tired of karma fortunes by now.mike_bike_kite ought to be getting tired of karma fortunes by now.mike_bike_kite ought to be getting tired of karma fortunes by now.mike_bike_kite ought to be getting tired of karma fortunes by now.mike_bike_kite ought to be getting tired of karma fortunes by now.
 
mike_bike_kite's Avatar
 
Posts: 500
Karma: 1500000
Join Date: Mar 2010
Location: London, UK
Device: KPW, K2i, Nexus 7 32gb, Kobo Mini
Actually here's my first success
Code:
select   b.title, a.name
from    books b, books_authors_link al, authors a
where  al.book = b.id
             and a.id = al.author
             and b.id not in ( select book from books_ratings_link )
            and b.title in (
                      SELECT  distinct name
                     FROM     books_ratings_link rl, books_authors_link  al, authors a
                     where      al.book = rl.book
                                      and a.id = al.author
                    )
It shows all the entries where the author and title are definitely swapped over ie the book title appears as an author in an entry where that entry has a rating etc. This obviously doesn't do anything clever where the titles and author names are a little messed up but it's a good first step. This found nearly 500 matches in my little database!

Mike
mike_bike_kite is offline   Reply With Quote