Ok here we go!
This will give you a fast Magic Node which give you all your "Duplicate Content" tracks so you easy can access all of them in one go.
1. First create a select query by pasting this code into the sql view of an Access query:
Code: Select all
SELECT Songs.SignPart1, Songs.SignPart2, Songs.SignPart3, Songs.SignPart4
FROM Songs
GROUP BY Songs.SignPart1, Songs.SignPart2, Songs.SignPart3, Songs.SignPart4
HAVING (((Songs.SignPart1)<>0) AND ((Songs.SignPart2)<>0) AND ((Songs.SignPart3)<>0) AND ((Songs.SignPart4)<>0) AND ((Count(Songs.ID))>1));
Save it as DupContent1
2. Create a "make table" query from this code:
Code: Select all
SELECT Songs.ID INTO DupContent
FROM DupContent1 INNER JOIN Songs ON (DupContent1.SignPart4 = Songs.SignPart4) AND (DupContent1.SignPart3 = Songs.SignPart3) AND (DupContent1.SignPart2 = Songs.SignPart2) AND (DupContent1.SignPart1 = Songs.SignPart1)
GROUP BY Songs.ID;
Save it as DupContent3
3. Run the make table query (DupContent3). Close it and open up the newly created DupContent table in design view and add a key to the ID field.
4. Open the DupContent3 query in design view and change the query type to Append query. (Query -> Append Query, hit OK and save.)
5. Create a new delete query from this code:
Code: Select all
DELETE DupContent.*
FROM DupContent;
Save it as DupContent2
Now you will have three queries:
- DupContent1, which is nested into DupContent3
- DupContent2, which deletes all data in table DupContent
- DupContent3, which adds new data to table DupContent
And one new table:
- DupContent, which is indexed on field ID
(The reason for having one delete and one add query is that we want to keep the key in the table DupContent which wouldnt be the case if we only used one make table query instead.)
Create a new Magic Node:
Code: Select all
Duplicate Content|SQL filter: songs.id in (select id from DupContent)\<Artist>
This Magic Node is fast!
The downside is that you MUST run the DupContent2 and DupContent3 queries everytime you add or delete tracks in MM.
This could however be simplified by creating an Access Macro:
- SetWarnings = no
- OpenQuery DupContent2
- OpenQuery DupContent3
Save it as MacroDupContent
The macro is executed in 3 sec!
Enjoy!
/Bex