I am trying to delete a row of data from my table using Inner Joins however my code doesn't seem to be working. I firstly wrote out a Select statement to ensure I was selecting the correct data:
SELECT * FROM tblPlaylist_Tracks
INNER JOIN tblPlaylist ON tblPlaylist_Tracks.PlaylistID = tblPlaylist.PlaylistID
INNER JOIN tblTrack ON tblPlaylist_Tracks.TrackID = tblTrack.TrackID
WHERE Playlist_Name = "x" AND Track_Name = "y";
I then replaced the select with a delete statement however this kicked up an error on line 2:
DELETE FROM tblPlaylist_Tracks
INNER JOIN tblPlaylist ON tblPlaylist_Tracks.PlaylistID = tblPlaylist.PlaylistID
INNER JOIN tblTrack ON tblPlaylist_Tracks.TrackID = tblTrack.TrackID
WHERE Playlist_Name = "x" AND Track_Name = "y";
I have attempted to specify what I want to delete between the Delete From statement however this doesn't seem to work as the query no longer recognizes DELETE as a command Appreciate any help possible. Many Thanks