I am using the musicbrainz.org postgresql database, which I have installed locally and have accessed via pgAdmin.
The database is a list of music artists and associated criteria. Here is the schema.
It is possible to list various relationships that an artist might have. E.g. Here is a link to the relationships held for Madonna, which includes a link to Madonna's wikipedia page and her twitter handle amongst others.
How can I create a SQL query that would output all relationships for a given artist? I have tried:
SELECT
url.url,
artist.name
FROM
musicbrainz.artist,
musicbrainz.url,
musicbrainz.link
WHERE
url.id = artist.id
ORDER BY
url.url ASC;
However, these links do not correlate with the correct artist. Am I using the wrong key?