Please, correct the title if it is not clear, unfortunately my English in not perfect, and I'm not sure how to explain my problem in one sentence.
I have a table of songs and one of artists, this is the songs table:
|-----------------------------|
| id | title | artist | date |
|-----------------------------|
| 1 | song1 | 1 | unix |
|-----------------------------|
| 2 | song2 | 1 | unix |
|-----------------------------|
| 3 | song3 | 2 | unix |
|-----------------------------|
| 4 | song4 | 3 | unix |
|-----------------------------|
And this is the artists table
|----------------------|
| id | name | date |
|----------------------|
| 1 | artist1 | unix |
|----------------------|
| 2 | artist2 | unix |
|----------------------|
| 3 | artist3 | unix |
|----------------------|
I would like to get a list of 10 random songs and other 3 song titles. I want to make a quiz where users listen to a song and must guess the title, so I need 4 possible answers, the correct and 3 worng titles. So the resoult must be this:
|-------------------------------------------------------------------------|
| id | title | artist_id | artist_name | date | wrong1 | wrong2 | wrong3 |
|-------------------------------------------------------------------------|
| 1 | song1 | 1 | artist1 | unix | song2 | song3 | song4 |
|-------------------------------------------------------------------------|
How can I reach this? Thank you very much, and please let me know if you need other info.