[PHPwestoz] [OT] Relational SQL Databases

Nicolas Connault nicou at sweetpeadesigns.com.au
Tue Feb 22 16:09:01 UTC 2005


Nicolas Connault wrote:

>
> SELECT Songs.*, Albums.* FROM Songs, Albums, Artists
> WHERE Artists.ID = Songs.ArtistID
> AND Album.ID = Songs.AlbumID
> AND Artist.Artist = "Avril"

Sorry I made a mistake, let me correct it here:

SELECT Songs.*, Albums.* FROM Songs, Albums, Artists
WHERE Artists.ID = Albums.ArtistID
AND Album.ID = Songs.AlbumID
AND Artist.Artist = "Avril"

Nicolas




More information about the PHPwestoz mailing list